/**
 * Auth Layout CSS - Two-column login/register pages
 * File: assets/css/auth-pages.css
 */

/* Base Auth Page Wrapper */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Two Column Container (Login/Register) */
.auth-two-column-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Single Column Container (Forgot Password) */
.auth-single-column-container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* SEO Panel (Left side of login/register) */
.auth-seo-panel {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-header {
    margin-bottom: 32px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 700;
}

.auth-seo-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.auth-seo-description {
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
}

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

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.auth-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.auth-feature-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.auth-stats-panel {
    margin-top: 32px;
    padding: 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    text-align: center;
}

.auth-stats-title {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

/* Form Panel (Right side of login/register, full width for forgot password) */
.auth-form-panel {
    padding: 48px;
}

.auth-centered-panel {
    text-align: center;
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Back Button */
.auth-back-link {
    margin-bottom: 24px;
}

.auth-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.auth-back-button:hover {
    color: #3b82f6;
}

/* Page Icons */
.auth-page-icon {
    margin-bottom: 24px;
}

.auth-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.auth-icon-circle.forgot-password {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.auth-icon-circle.email-sent {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Success State Styles */
.auth-success-actions {
    margin-bottom: 32px;
}

.auth-resend-section {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.auth-resend-text {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 14px;
}

.auth-resend-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s;
}

.auth-resend-btn:hover {
    color: #1d4ed8;
}

.auth-resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

.auth-email-tips {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

.auth-email-tips h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.auth-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-tips-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

.auth-tips-list li:before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    font-size: 14px;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Forms */
.auth-login-form,
.auth-register-form,
.auth-forgot-form {
    margin-bottom: 24px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Password Fields */
.auth-password-wrapper {
    position: relative;
}

.auth-password-input {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.auth-password-toggle:hover {
    color: #64748b;
}

.auth-password-strength {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

.strength-weak {
    color: #dc2626;
}

.strength-medium {
    color: #f59e0b;
}

.strength-strong {
    color: #16a34a;
}

/* Terms and Conditions */
.auth-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.auth-terms-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

.auth-terms-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

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

/* Form Options */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.auth-forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.auth-forgot-link:hover {
    color: #1d4ed8;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Footer Text */
.auth-footer-text {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.auth-footer-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.15s;
}

.auth-footer-link:hover {
    color: #1d4ed8;
}

/* Help Section (Forgot Password) */
.auth-help-section {
    margin: 32px 0;
}

.auth-help-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

.auth-help-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-help-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.auth-help-list {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.auth-help-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

.auth-help-list li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    font-size: 16px;
}

.auth-help-contact {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.auth-help-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.auth-help-link:hover {
    text-decoration: underline;
}

/* Additional Actions */
.auth-additional-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.auth-action-divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.auth-action-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-action-divider span {
    background: white;
    padding: 0 16px;
    color: #64748b;
    font-size: 14px;
    position: relative;
}

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

.auth-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.auth-action-link:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #374151;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auth-two-column-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .auth-seo-panel {
        display: none;
    }
    
    .auth-form-panel {
        padding: 32px 24px;
    }
    
    .auth-form-title {
        font-size: 24px;
    }
    
    .auth-form-subtitle {
        font-size: 14px;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 24px 20px;
    }
    
    .auth-form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .auth-action-links {
        gap: 8px;
    }
}