/* ========================================
   Auth Section (Login/Register)
   ======================================== */
.auth-section {
    min-height: calc(100vh - 140px); /* Account for navbar and footer */
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-accent) 100%);
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

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

.logo-image {
    height: 2.5rem;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-style: italic;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(217, 119, 6, 0.15);
    outline: none;
}

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

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.password-toggle:focus {
    outline: none;
    color: var(--primary);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Form Options (Remember me & Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

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

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 119, 6, 0.15);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0;
}

.forgot-password {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

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

/* Submit Button */
.btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.05rem;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

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

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer */
.auth-footer {
    text-align: center;
}

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

.register-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

.demo-link {
    font-size: 0.9rem;
}

.demo-link a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.demo-link a:hover {
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}