/**
 * Login page — Design D (Asymmetric split)
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.login-page {
    display: flex;
    height: 100vh;
}

/* ===== LEFT PANEL ===== */
.login-panel {
    width: 38%;
    min-width: 340px;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.login-panel__geo1 {
    position: absolute;
    top: 8%;
    left: 12%;
    width: 65%;
    height: 18%;
    background: #273548;
    border-radius: 12px;
}

.login-panel__geo2 {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 58%;
    height: 14%;
    background: #162033;
    border-radius: 12px;
}

.login-panel__geo3 {
    position: absolute;
    top: 32%;
    left: 6%;
    width: 50%;
    height: 16%;
    background: #273548;
    border-radius: 12px;
}

.login-panel__customer-logo {
    position: relative;
    z-index: 1;
    margin-bottom: auto;
}

.login-panel__customer-logo img {
    height: 60px;
    width: auto;
}

.login-panel__brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-panel__brand img {
    height: 34px;
    width: auto;
    opacity: 0.8;
}

.login-panel__brand-name {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: -0.01em;
}

/* ===== MOBILE HEADER ===== */
.login-mobile-header {
    display: none;
    padding: 1.25rem 1.5rem;
    background: #1e293b;
}

.login-mobile-header img {
    height: 32px;
    width: auto;
}

/* ===== RIGHT PANEL (FORM) ===== */
.login-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5rem;
    background: #fff;
}

.login-form-area__inner {
    max-width: 400px;
    width: 100%;
}

.login-form-area__welcome {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.login-form-area__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.login-form-area__subtitle {
    font-size: 0.9rem;
    color: #637794;
    margin-bottom: 2.25rem;
}

/* ===== FORM ELEMENTS ===== */
.login-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 1.125rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.login-input-icon {
    padding-left: 0.875rem;
    color: #637794;
    font-size: 0.95rem;
    display: flex;
}

.login-input {
    border: none;
    outline: none;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    color: #1e293b;
    width: 100%;
    background: transparent;
}

.login-input::placeholder {
    color: #637794;
}

/* ===== VALIDATION ===== */
.login-error {
    display: block;
    color: #c53030;
    font-size: 0.78rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

.login-error:empty {
    display: none;
}

.login-alert {
    background: #fdf0f0;
    color: #c53030;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.login-alert:empty,
.login-alert .validation-summary-valid {
    display: none;
}

/* ===== BUTTON ===== */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    background: #1e293b;
    color: #fff;
    margin-top: 0.5rem;
    transition: background 0.15s;
}

.login-btn:hover {
    background: #0f172a;
}

.login-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ===== SSO BUTTON & DIVIDER ===== */
.login-btn--sso {
    background: #2368ce;
    text-decoration: none;
}

.login-btn--sso:hover {
    background: #1d57ad;
    color: #fff;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.75rem;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ===== FORGOT LINK ===== */
.login-forgot {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-forgot:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== HINT TEXT ===== */
.login-form-area__hint {
    font-size: 0.78rem;
    color: #637794;
    margin-top: -0.5rem;
    margin-bottom: 1.125rem;
    line-height: 1.4;
}

/* ===== SUCCESS ICON (confirmation pages) ===== */
.login-success-icon {
    font-size: 3rem;
    color: #059669;
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-panel {
        display: none;
    }

    .login-mobile-header {
        display: block;
    }

    .login-form-area {
        padding: 2rem 1.5rem;
        flex: 1;
    }
}
