/**
 * Auth — compact, clean form surface
 */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--bg-light);
}

.auth-header {
    margin-bottom: 20px;
}

.auth-header .logo {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.auth-header .logo-img,
.auth-header .logo img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-header .logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blue-950, #0b1f3a);
}

.auth-header .logo i {
    font-size: 1.35rem;
}

.auth-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto 0;
    text-decoration: none;
    line-height: 1;
}

.auth-brand-stack .logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.auth-brand-stack .logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0b1f3a;
}

.auth-tabs {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 400px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.auth-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    display: none;
    border: 1px solid var(--border-color);
}

.auth-form.active {
    display: block;
}

.auth-form--clean {
    max-width: 430px;
    padding: 24px 22px;
}

.auth-tabs--clean {
    max-width: 100%;
    margin-bottom: 18px;
}

.auth-form--wide {
    max-width: 980px;
    padding: 0;
    overflow: hidden;
}

.auth-form--verify {
    max-width: 460px;
}

.auth-form h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-color);
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin: 0 0 22px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px);
    min-height: 580px;
}

.auth-shell__intro {
    padding: 40px 36px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    border-left: 1px solid var(--border-color);
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(12, 98, 220, 0.08);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-shell__intro h1 {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.4;
    color: var(--text-color);
}

.auth-shell__intro p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.9;
}

.auth-benefits {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.auth-benefits li::before {
    content: '';
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(12, 98, 220, 0.08);
}

.auth-shell__card {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs--visible {
    display: flex;
    max-width: none;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-stack {
    display: grid;
    gap: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.btn-google {
    background: #4285f4;
    color: white;
}

.btn-google:hover {
    background: #357ae8;
}

.divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: #fff;
    padding: 0 12px;
    color: var(--text-light);
    position: relative;
    font-size: 0.8125rem;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    direction: ltr;
    text-align: left;
    background: #fff;
    color: var(--text-color);
    box-sizing: border-box;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--input-focus-ring);
}

.auth-form .form-control::placeholder {
    color: var(--text-muted);
}

.auth-form .invalid-feedback {
    display: none;
    margin-top: 6px;
    color: var(--danger-color);
    font-size: 0.8125rem;
    font-weight: 500;
}

.auth-form .was-validated .form-control:invalid ~ .invalid-feedback,
.auth-form .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.auth-form .form-control.is-invalid,
.auth-form .was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

.auth-form .form-control.is-invalid:focus,
.auth-form .was-validated .form-control:invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-form .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.auth-form .btn-primary:hover {
    background: var(--primary-dark);
}

.auth-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-light {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
}

.btn-light:hover {
    background: #f8fafc;
}

.auth-form .btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 11px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.auth-form .btn-secondary:hover {
    background: var(--primary-light);
}

.auth-alert {
    width: 100%;
    max-width: 400px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
}

.auth-alert--info {
    border-color: #b6d4f5;
    background: var(--primary-light);
    color: var(--primary-deeper);
}

.auth-alert--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-top: 12px;
}

.alert-danger {
    background: #fef2f2;
    color: var(--danger-color);
    border: 1px solid #fecaca;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-bottom: 12px;
    text-align: center;
}

.otp-container {
    margin-bottom: 18px;
}

.otp-input-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    direction: ltr;
}

.otp-input {
    width: 100%;
    height: 56px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid var(--input-border);
    border-radius: 14px;
    background: #fff;
    color: var(--text-color);
    font-family: inherit;
}

.otp-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--input-focus-ring);
}

.otp-input.filled {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.timer-container {
    text-align: center;
    margin-bottom: 18px;
}

.timer-text {
    margin: 0 0 8px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.btn-link:hover:not(:disabled) {
    color: var(--primary-dark);
}

.btn-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 8px;
}

.auth-verify-actions {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.login-options {
    margin-top: 16px;
}

.k-hidden,
.is-hidden {
    display: none !important;
}

.mt-3 {
    margin-top: 12px;
}

@media (max-width: 480px) {
    .auth-form--clean {
        max-width: 100%;
        padding: 20px 14px;
    }

    .auth-form--wide,
    .auth-form--verify {
        max-width: 100%;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-shell__intro {
        padding: 28px 20px;
        border-left: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .auth-shell__intro h1 {
        font-size: 1.5rem;
    }

    .auth-shell__card {
        padding: 20px 18px 22px;
    }

    .auth-form {
        padding: 22px 16px;
    }

    .auth-header {
        margin-bottom: 16px;
    }

    .otp-input {
        height: 48px;
        font-size: 1.125rem;
    }
}
