/* ── Container ── */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ══════════════════════════════════════
   Left Panel
   ══════════════════════════════════════ */
.auth-left {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3vh 3vw;
    color: #fff;
    overflow: hidden;
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(8, 20, 42, 0.88) 30%, rgba(12, 30, 58, 0.72) 100%);
    z-index: 0;
}

.left-content {
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-bottom: 2vh;
}

.brand-logo {
    height: clamp(32px, 2.5vw, 48px);
    width: auto;
    object-fit: contain;
}

.hero-title {
    font-size: clamp(1.5rem, 1.7vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1vh;
}

.hero-description {
    font-size: clamp(0.85rem, 0.9vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 90%;
    margin-bottom: 2vh;
}

.hero-divider {
    width: clamp(36px, 3vw, 48px);
    height: 3px;
    background: #1565c0;
    margin-bottom: 2vh;
    border-radius: 2px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.2vh;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8vw;
}

.feature-icon {
    width: clamp(36px, 2.8vw, 46px);
    height: clamp(36px, 2.8vw, 46px);
    min-width: clamp(36px, 2.8vw, 46px);
    border-radius: clamp(8px, 0.7vw, 12px);
    background: rgba(21, 101, 192, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 0.9vw, 1.2rem);
}

.feature-icon-alt {
    background: rgba(13, 71, 161, 0.75);
}

.feature-title {
    font-weight: 600;
    font-size: clamp(0.8rem, 0.75vw, 0.95rem);
}

.feature-desc {
    font-size: clamp(0.7rem, 0.65vw, 0.85rem);
    color: rgba(255, 255, 255, 0.65);
}

.left-footer {
    position: absolute;
    bottom: 2vh;
    left: 3vw;
    z-index: 1;
    font-size: clamp(0.7rem, 0.65vw, 0.85rem);
    color: rgba(255, 255, 255, 0.55);
}

/* ══════════════════════════════════════
   Right Panel
   ══════════════════════════════════════ */
.auth-right {
    flex: 1;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
    position: relative;
}

.auth-card {
    background: #fff;
    border-radius: clamp(12px, 1vw, 16px);
    padding: clamp(1.8rem, 2vh, 2.5rem) clamp(1.8rem, 2vw, 2.5rem);
    width: 90%;
    max-width: clamp(360px, 32vw, 440px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.card-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4vw;
    margin-bottom: 1.2vh;
}

.card-brand-logo {
    height: clamp(36px, 2.8vw, 52px);
    width: auto;
    object-fit: contain;
}

.card-title {
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.3rem, 1.2vw, 1.5rem);
    margin-bottom: 0.5vh;
    color: #1a1a2e;
}

.card-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1.8vh;
    font-size: clamp(0.8rem, 0.75vw, 0.95rem);
}

.auth-card .input-group-text {
    background: #fff;
    color: #6c757d;
    border-color: var(--bp-control-border);
    padding: var(--bp-control-padding-y) var(--bp-control-padding-x);
    font-size: var(--bp-font-size);
}

.btn-toggle-password {
    cursor: pointer;
    border-color: var(--bp-control-border);
}

.btn-toggle-password:hover {
    color: #333;
}

.auth-card .form-control {
    min-height: var(--bp-control-height);
    border-color: var(--bp-control-border);
    padding: var(--bp-control-padding-y) var(--bp-control-padding-x);
    font-size: var(--bp-font-size);
}

.auth-card .form-control:focus {
    border-color: var(--bp-control-focus);
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15);
}

.auth-card .form-label {
    font-size: var(--bp-font-size);
    font-weight: 500;
}

.auth-card .form-check {
    margin-bottom: 1.2vh;
}

.auth-card .form-check-label {
    font-size: clamp(0.8rem, 0.75vw, 0.9rem);
}

.forgot-link {
    color: #1565c0;
    text-decoration: none;
    font-size: var(--bp-font-size);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-signin {
    min-height: var(--bp-control-height);
    padding: var(--bp-control-padding-y) var(--bp-control-padding-x);
    font-size: var(--bp-font-size);
    font-weight: 600;
    border-radius: var(--bp-control-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4vw;
    background: var(--bp-primary);
    border-color: var(--bp-primary);
}

.btn-signin:hover {
    background: var(--bp-primary-hover);
    border-color: var(--bp-primary-hover);
}

.divider-or {
    display: flex;
    align-items: center;
    margin: 1.5vh 0;
    color: #6c757d;
    font-size: clamp(0.8rem, 0.75vw, 0.9rem);
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    border-top: 1px solid #dee2e6;
}

.divider-or span {
    padding: 0 clamp(0.7rem, 0.8vw, 1rem);
}

.btn-microsoft {
    min-height: var(--bp-control-height);
    padding: var(--bp-control-padding-y) var(--bp-control-padding-x);
    font-size: var(--bp-font-size);
    font-weight: 500;
    border-radius: var(--bp-control-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 0.6vw, 0.75rem);
    color: #333;
    border-color: var(--bp-control-border);
}

.btn-microsoft:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #333;
}

.support-text {
    text-align: center;
    margin-top: 1.5vh;
    margin-bottom: 0;
    color: #6c757d;
    font-size: var(--bp-font-size);
}

.support-link {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.support-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        min-height: 280px;
        padding: 2rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .features-list {
        display: none;
    }

    .left-footer {
        display: none;
    }

    .auth-right {
        padding: 2rem 1rem;
    }

    .auth-card {
        width: 100%;
    }
}
