﻿/* sso-login.css - SSO Portal Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sso-dark-bg: #0e0e0e;
    --sso-accent-blue: #ffffff;
    --sso-accent-hover: #e4e4e7;
    --sso-text-light: #ffffff;
    --sso-text-muted: #a1a1aa;
    /* zinc-400 */
    --sso-text-darker: #71717a;
    /* zinc-500 */
    --sso-border: #27272a;
    /* zinc-800 */
    --sso-input-bg: #0d0d0d;
    /* zinc-950 */
}

body.sso-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--sso-dark-bg);
    overflow: hidden;
    height: 100vh;
}

.sso-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Left Showcase Area */
.sso-showcase {
    flex: 6;
    background: var(--sso-dark-bg);
    border-right: 1px solid var(--sso-border);
    position: relative;
    padding: 4rem 4rem 4rem 5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--sso-text-light);
}

/* Background subtle glow */
.sso-showcase::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sso-logo-wrapper {
    display: block;
    margin-bottom: 3rem;
    z-index: 10;
    text-decoration: none;
    width: fit-content;
}

.sso-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.sso-header {
    z-index: 10;
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
    align-self: center;
    width: 100%;
}

.sso-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: -0.03em;
}

.sso-header p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--sso-text-muted);
    max-width: 520px;
    margin: 0;
}

/* Latest article card */
.sso-article-card {
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: relative;
    max-width: 520px;
    width: 100%;
    align-self: center;
    text-decoration: none;
    border: 1px solid var(--sso-border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sso-article-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.sso-article-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.sso-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sso-article-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sso-article-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sso-text-muted);
}

.sso-article-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--sso-text-light);
    margin: 0;
}

.sso-article-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--sso-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Static Product List */
.sso-product-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 10;
    position: relative;
    max-width: 400px;
}

.sso-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sso-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sso-text-light);
    margin: 0;
    letter-spacing: -0.01em;
}

.sso-category-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sso-category-items li {
    font-size: 0.95rem;
    color: var(--sso-text-darker);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.sso-category-items li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--sso-accent-blue);
    border-radius: 50%;
    opacity: 0.7;
}

.sso-category-items li:hover {
    color: var(--sso-text-muted);
}

/* Graphic Presentation (pow.jpg) */
.sso-graphic-container {
    position: absolute;
    right: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 75%;
    max-width: 900px;
    aspect-ratio: 16/9;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow behind the image */
.sso-graphic-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--sso-accent-blue);
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    border-radius: 50%;
}

.sso-pow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Creative 3D styling */
    transform: perspective(1200px) rotateY(-20deg) rotateX(10deg);
    box-shadow:
        -20px 30px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        -5px 5px 20px rgba(255, 255, 255, 0.06);
    /* Adding a subtle gradient overlay to blend it into the dark theme */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    position: relative;
    transition: transform 0.5s ease;
}

/* Right Login Area */
.sso-login-panel {
    flex: 4;
    background: var(--sso-dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    z-index: 10;
}

.sso-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.sso-form-wrapper h2 {
    color: var(--sso-text-light);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.sso-form-wrapper p.sso-subtitle {
    color: var(--sso-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.sso-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sso-input-group {
    display: flex;
    flex-direction: column;
}

.sso-input {
    background: var(--sso-input-bg);
    border: 1px solid var(--sso-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--sso-text-light);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.sso-input::placeholder {
    color: #52525b;
    /* zinc-600 */
}

.sso-input:focus {
    border-color: var(--sso-accent-blue);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.sso-forgot-link {
    text-align: right;
    color: var(--sso-accent-blue);
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.sso-forgot-link:hover {
    color: var(--sso-accent-hover);
}

.sso-submit-btn {
    background: var(--sso-accent-blue);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.sso-submit-btn:hover {
    background: var(--sso-accent-hover);
}

.sso-error-alert {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .sso-layout {
        flex-direction: column;
    }

    .sso-showcase {
        flex: auto;
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--sso-border);
    }

    .sso-graphic-container {
        display: none;
    }

    .sso-product-list {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3rem;
    }

    .sso-login-panel {
        flex: auto;
        min-height: 100vh;
    }
}