/* ===================================================
   AUTH PAGES — Premium Split-Screen Design
   =================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    background-color: #f0f2f5;
    font-family: var(--font-family);
}

/* --- Branded Left Panel --- */
.auth-brand-panel {
    position: relative;
    width: 45%;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--primary-color) 0%, #162d4a 40%, #1a3654 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 176, 135, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(27, 176, 135, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 420px;
}

.auth-brand-logo {
    width: 160px;
    height: auto;
    margin-bottom: 40px;
    filter: brightness(0) invert(1);
}

.auth-brand-tagline {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.auth-brand-tagline span {
    color: var(--veye-green);
}

.auth-brand-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 48px;
}

/* Feature list on branded panel */
.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-brand-features li:last-child {
    border-bottom: none;
}

.auth-brand-features li .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(27, 176, 135, 0.15);
    color: var(--veye-green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Decorative grid pattern */
.auth-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* --- Right Form Panel --- */
.auth-form-panel {
    width: 55%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #f8f9fb;
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

/* Mobile logo (shown only on mobile) */
.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}

.auth-mobile-logo img {
    width: 120px;
    height: auto;
}

/* Form header */
.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-form-header p {
    font-size: 0.92rem;
    color: #6b7c93;
    margin: 0;
    line-height: 1.5;
}

/* Form card */
.auth-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(14, 30, 50, 0.08);
    border: 1px solid rgba(14, 30, 50, 0.06);
}

/* Form groups */
.auth-form-group {
    margin-bottom: 22px;
}

.auth-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca8b7;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.22s ease;
    z-index: 2;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.88rem;
    font-family: var(--font-family);
    color: var(--text-dark-color);
    background: #fafbfc;
    transition: all 0.25s ease;
    outline: none;
}

.auth-input-wrapper input:focus {
    border-color: var(--veye-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 176, 135, 0.1);
}

.auth-input-wrapper input:focus ~ .input-icon {
    color: var(--veye-green);
}

.auth-input-wrapper input.is-invalid {
    border-color: var(--danger-color);
    background: #fff;
}

.auth-input-wrapper input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.auth-input-wrapper input::placeholder {
    color: #b0bac5;
}

/* Password toggle */
.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca8b7;
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: color 0.22s ease;
    z-index: 2;
}

.auth-password-toggle:hover {
    color: var(--primary-color);
}

/* Error messages */
.auth-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--danger-color);
    font-weight: 500;
}

.auth-error i {
    font-size: 0.85rem;
}

/* Remember & forgot row */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--veye-green);
    border-radius: 4px;
    cursor: pointer;
}

.auth-remember span {
    font-size: 0.82rem;
    color: #6b7c93;
    font-weight: 500;
}

.auth-forgot-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--veye-green);
    text-decoration: none;
    transition: color 0.22s ease;
}

.auth-forgot-link:hover {
    color: #16987a;
    text-decoration: underline;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #162d4a 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--veye-green) 0%, #16987a 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
    border-radius: 12px;
}

.auth-submit-btn:hover::before {
    opacity: 1;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 30, 50, 0.2);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    font-size: 0.78rem;
    color: #9ca8b7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Footer links */
.auth-footer-text {
    text-align: center;
    margin-top: 28px;
    font-size: 0.85rem;
    color: #6b7c93;
}

.auth-footer-text a {
    color: var(--veye-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.22s ease;
}

.auth-footer-text a:hover {
    color: #16987a;
    text-decoration: underline;
}

/* Back to login link */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.22s ease;
}

.auth-back-link:hover {
    color: var(--veye-green);
    gap: 10px;
}

.auth-back-link i {
    font-size: 1rem;
    transition: transform 0.22s ease;
}

.auth-back-link:hover i {
    transform: translateX(-3px);
}

/* Alert messages */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.auth-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auth-alert-success {
    background: rgba(27, 176, 135, 0.1);
    color: #16987a;
    border: 1px solid rgba(27, 176, 135, 0.2);
}

.auth-alert-error {
    background: rgba(220, 53, 69, 0.08);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.15);
}

/* Info box */
.auth-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(27, 176, 135, 0.06);
    border: 1px solid rgba(27, 176, 135, 0.15);
    border-radius: 12px;
    margin-top: 24px;
}

.auth-info-box .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(27, 176, 135, 0.12);
    color: var(--veye-green);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.auth-info-box .info-content h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.auth-info-box .info-content p {
    font-size: 0.78rem;
    color: #6b7c93;
    margin: 0;
    line-height: 1.5;
}

/* Password requirements */
.auth-password-requirements {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.auth-password-requirements h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.auth-password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-password-requirements ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #6b7c93;
    padding: 5px 0;
}

.auth-password-requirements ul li i {
    color: #c4cdd6;
    font-size: 0.85rem;
}

/* Copyright footer inside auth */
.auth-copyright {
    text-align: center;
    margin-top: 32px;
    font-size: 0.75rem;
    color: #b0bac5;
}

.auth-copyright a {
    color: #9ca8b7;
    text-decoration: none;
}

.auth-copyright a:hover {
    color: var(--veye-green);
}

/* --- Animated decorative elements --- */
.auth-floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    z-index: 1;
}

.auth-floating-shape-1 {
    width: 200px;
    height: 200px;
    background: var(--veye-green);
    top: 15%;
    right: -60px;
    animation: auth-float 8s ease-in-out infinite;
}

.auth-floating-shape-2 {
    width: 120px;
    height: 120px;
    background: #fff;
    bottom: 20%;
    left: 10%;
    animation: auth-float 6s ease-in-out infinite reverse;
}

.auth-floating-shape-3 {
    width: 80px;
    height: 80px;
    background: var(--veye-green);
    top: 60%;
    right: 15%;
    animation: auth-float 10s ease-in-out infinite;
}

@keyframes auth-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

/* ===================================================
   REGISTER PAGE — Terms
   =================================================== */
.auth-terms {
    margin-bottom: 22px;
}

.auth-terms p {
    font-size: 0.78rem;
    color: #6b7c93;
    line-height: 1.6;
    margin: 0;
}

.auth-terms a {
    color: var(--veye-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* ===================================================
   EMAIL VERIFICATION PAGE
   =================================================== */
.auth-verification-icon {
    text-align: center;
    margin-bottom: 24px;
}

.verification-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(27, 176, 135, 0.1);
    color: var(--veye-green);
    font-size: 1.8rem;
}

.auth-verification-text {
    text-align: center;
    margin-bottom: 28px;
}

.auth-verification-text p {
    font-size: 0.88rem;
    color: #6b7c93;
    margin: 0 0 4px;
}

.auth-verification-email {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 0.95rem !important;
    margin-bottom: 12px !important;
}

.auth-verification-hint {
    font-size: 0.82rem !important;
    margin-top: 12px !important;
}

/* ===================================================
   2FA PAGES
   =================================================== */
.auth-2fa-icon {
    text-align: center;
    margin-bottom: 24px;
}

.twofa-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 30, 50, 0.08) 0%, rgba(27, 176, 135, 0.12) 100%);
    color: var(--primary-color);
    font-size: 1.8rem;
}

.twofa-icon-recovery {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.12) 100%);
    color: #d4a017;
}

/* OTP Input Styling */
.auth-otp-input {
    text-align: center;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 12px;
    padding-left: 46px !important;
}

/* 2FA Status badges */
.auth-2fa-status {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.auth-2fa-enabled {
    background: rgba(27, 176, 135, 0.06);
    border: 1px solid rgba(27, 176, 135, 0.15);
}

.auth-2fa-disabled {
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.15);
}

.auth-2fa-status .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-2fa-enabled .status-badge {
    background: rgba(27, 176, 135, 0.12);
    color: var(--veye-green);
}

.auth-2fa-disabled .status-badge {
    background: rgba(255, 193, 7, 0.12);
    color: #d4a017;
}

.auth-2fa-status p {
    font-size: 0.84rem;
    color: #6b7c93;
    margin: 0;
}

/* Setup steps */
.auth-2fa-steps {
    margin-bottom: 28px;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}

.setup-step:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h6 {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px;
}

.step-content p {
    font-size: 0.78rem;
    color: #6b7c93;
    margin: 0;
    line-height: 1.4;
}

/* QR Code container */
.auth-qr-container {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(14, 30, 50, 0.06);
    margin-bottom: 16px;
}

.qr-code-wrapper img,
.qr-code-wrapper svg {
    display: block;
    width: 200px;
    height: 200px;
}

.qr-manual-entry p {
    font-size: 0.78rem;
    color: #6b7c93;
    margin: 0 0 8px;
}

.secret-key-display {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    border-radius: 8px;
}

.secret-key-display code {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    word-break: break-all;
}

/* Recovery codes grid */
.auth-recovery-codes {
    padding: 20px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.auth-recovery-codes h6 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.auth-recovery-codes .recovery-warning {
    font-size: 0.78rem;
    color: #d4a017;
    font-weight: 500;
    margin-bottom: 14px;
}

.recovery-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.recovery-code-item {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.recovery-code-item code {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Secondary button */
.auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #f0f2f5;
    color: var(--primary-color);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.22s ease;
}

.auth-btn-secondary span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn-secondary:hover {
    background: #e8eaed;
    border-color: #c4cdd6;
}

/* Danger button */
.auth-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(220, 53, 69, 0.08);
    color: var(--danger-color);
    border: 1.5px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.22s ease;
}

.auth-btn-danger span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn-danger:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

/* ===================================================
   RESPONSIVE DESIGN (continued)
   =================================================== */

@media (max-width: 991.98px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        padding: 32px 24px;
    }

    .auth-mobile-logo {
        display: block;
    }

    .auth-form-header h2 {
        font-size: 1.6rem;
    }

    .auth-form-card {
        padding: 28px 24px;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        padding: 20px 16px;
    }

    .auth-form-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .auth-form-header h2 {
        font-size: 1.4rem;
    }

    .auth-options-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
