/* ============================================
   AUTH PAGES STYLES
   Login and Registration pages
   ============================================ */

.auth-page {
    /* Dark background for login page */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
}

.auth-card {
    background: var(--bg-surface);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

/* Left Panel - Branding */
.auth-left {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-hover) 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-left-content {
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.auth-logo-fallback {
    color: var(--color-brand, #10B981);
}

.auth-clinic-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.auth-clinic-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.auth-features li i {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Right Panel - Form */
.auth-right {
    padding: 3rem 2.5rem;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-title i {
    color: var(--color-info);
}

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

/* Form Styles */
.auth-form {
    margin-top: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form .form-label i {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-divider);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-form .form-control:focus {
    border-color: var(--color-info);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.auth-form .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-form .invalid-feedback {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.auth-form .text-muted {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: block;
}

/* Remember Me Checkbox */
.auth-form .form-check {
    padding-left: 1.75rem;
}

.auth-form .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    border: 2px solid var(--border-input);
}

.auth-form .form-check-input:checked {
    background-color: var(--color-info);
    border-color: var(--color-info);
}

.auth-form .form-check-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Forgot Password Link */
.forgot-password a {
    color: var(--color-info);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--color-info);
    text-decoration: underline;
}

/* Buttons */
.auth-form .btn-primary,
.auth-form .btn-login {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--color-info), var(--color-info));
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-form .btn-primary:hover,
.auth-form .btn-login:hover {
    background: linear-gradient(135deg, var(--color-info), var(--color-info-text));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

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

/* Links */
.auth-link {
    color: var(--color-info);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 1rem;
}

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

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

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

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

/* Alerts */
.auth-form .alert,
.auth-right .alert {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid;
}

.auth-form .alert i,
.auth-right .alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.auth-form .alert-danger,
.auth-right .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-danger-text);
}

.auth-form .alert-success,
.auth-right .alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-brand-dark);
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-left {
        padding: 2rem;
    }

    .auth-right {
        padding: 2rem;
    }

    .auth-clinic-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        min-height: auto;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}
