/* ================================
   AUTH PAGES STYLES (Login/Register)
   ================================ */

.auth-page {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 2rem 60px;
}

.auth-container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Error Messages */
.error-messages {
    margin-bottom: 1.5rem;
}

.error-message {
    background: rgba(206, 17, 38, 0.1);
    border-left: 4px solid var(--cr-red);
    color: var(--cr-red);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--cr-red);
    box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.1);
}

.form-input.error {
    border-color: var(--cr-red);
}

.form-help {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Form Group Row (for checkbox + link) */
.form-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--cr-red);
}

/* Links */
.link-primary {
    color: var(--cr-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: var(--cr-red-light);
    text-decoration: underline;
}

.link-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: var(--cr-red);
    text-decoration: underline;
}

/* Full Width Button */
.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.auth-footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Auth Features (Side Panel) */
.auth-features {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.auth-features h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.auth-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-features li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Minimal */
.footer-minimal {
    background: var(--text-dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-minimal .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-minimal p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-minimal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-minimal a:hover {
    color: white;
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */

@media (max-width: 968px) {
    .auth-section {
        padding: 120px 1rem 60px;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-features {
        order: -1; /* Show features first on mobile */
    }
}

@media (max-width: 640px) {
    .auth-section {
        padding: 100px 1rem 40px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .form-group-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .auth-features {
        padding: 2rem;
    }
    
    .auth-features h3 {
        font-size: 1.25rem;
    }
}

/* ================================
   PASSWORD STRENGTH INDICATOR
   ================================ */

.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ff4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffaa00;
}

.password-strength-bar.strong {
    width: 100%;
    background: #00aa00;
}

/* ================================
   LOADING STATE
   ================================ */

.auth-form.loading .btn-primary {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.auth-form.loading .btn-primary::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}