/* Auth Pages Styles */

.auth-body {
    min-height: 100vh;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Brand Panel (Left) */
.auth-brand-panel {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    height: 48px;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
}

.auth-brand-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.auth-brand-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.auth-feature i {
    color: var(--secondary-light);
    font-size: 16px;
}

/* Form Panel (Right) */
.auth-form-panel {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-wrapper {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

/* Form Styles */
.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--surface);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

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

.form-control.is-invalid {
    border-color: #DC2626;
}

.invalid-feedback {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 6px;
}

/* Captcha */
.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.captcha-label i {
    color: var(--secondary);
}

/* Auth Button */
.btn-auth {
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px 24px;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Link */
.auth-link {
    color: var(--primary-light);
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.auth-footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* OTP Input Styles */
.otp-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Responsive */
@media (max-width: 991px) {
    .auth-container {
        max-width: 480px;
    }

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

@media (max-width: 576px) {
    .auth-body {
        padding: 16px;
    }

    .auth-container {
        border-radius: var(--radius-md);
    }

    .auth-form-panel {
        padding: 24px 20px;
    }

    .otp-input {
        width: 44px;
        height: 48px;
        font-size: 1.25rem;
    }

    .otp-input-group {
        gap: 8px;
    }
}
