/* ===========================
   AUTH PAGES STYLES
   =========================== */

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #f8fafc;
    --accent: #10b981;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

/* ===========================
   AUTH CONTAINER
   =========================== */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ===========================
   LEFT SIDE - BRANDING
   =========================== */

.auth-branding {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.logo-icon {
    font-size: 2rem;
}

.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.auth-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-content > p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Features list */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.feature-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

/* Badge */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.badge-icon {
    font-size: 1.25rem;
}

/* Stats (for login page) */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Info (for reset password) */
.auth-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Timeline (for verify email) */
.auth-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    opacity: 0.5;
}

.timeline-item.active,
.timeline-item.completed {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
}

.timeline-item.completed .timeline-icon {
    background: var(--success);
}

.timeline-item.active .timeline-icon {
    background: var(--primary);
}

/* ===========================
   RIGHT SIDE - FORM
   =========================== */

.auth-form-container {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form-wrapper {
    width: 100%;
}

.auth-header {
    text-align: center;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.auth-header p {
    color: var(--text-medium);
    font-size: 1rem;
}

/* ===========================
   FORM STYLES
   =========================== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px;
    margin-bottom: 0px;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.875rem;
}

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

.forgot-password:hover {
    text-decoration: underline;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    background: white;
}

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

.form-group input.error {
    border-color: var(--error);
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--error);
    min-height: 20px;
}

/* Password input wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

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

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
    opacity: 0.5;
}

.password-toggle:hover {
    opacity: 1;
}

/* Password strength */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background: var(--error);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Checkbox */
.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

.btn-spinner {
    font-size: 1.25rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================
   MESSAGES
   =========================== */

.form-server-error {
    padding: 1rem;
    background: #fef2f2;
    border: 2px solid var(--error);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 0.875rem;
}

.form-success {
    padding: 1rem;
    background: #f0fdf4;
    border: 2px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.success-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

/* ===========================
   FOOTER & NOTES
   =========================== */

.auth-footer {
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    text-align: center;
}

.auth-footer p {
    color: var(--text-medium);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-notes {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.auth-notes p,
.auth-notes li {
    font-size: 0.875rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.auth-notes p:last-child,
.auth-notes li:last-child {
    margin-bottom: 0;
}

.auth-notes h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.auth-notes ul {
    list-style: none;
    padding-left: 0;
}

.auth-notes a {
    color: var(--primary);
    text-decoration: underline;
}

.note-icon {
    font-size: 1.125rem;
}

/* ===========================
   VERIFY EMAIL PAGE
   =========================== */

.verify-email-header {
    text-align: center;
    margin-bottom: 2rem;
}

.verify-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.verify-email-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.verify-email-header p {
    color: var(--text-medium);
}

.verify-email-header strong {
    color: var(--primary);
}

.verify-instructions {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.verify-instructions h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.verify-instructions ol {
    padding-left: 1.5rem;
}

.verify-instructions li {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.verify-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border: 2px solid var(--warning);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.verify-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.resend-section {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.resend-section p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.resend-count {
    margin-top: 1rem !important;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1168px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    #form-stripe-abonnement {
        display: block;
    }
    .auth-header h2 {
        font-size: 3em;
    }
    .auth-branding {
        padding: 1em 2em;
        min-height: auto;
    }
    
    .auth-content h1 {
        font-size: 2rem;
    }
    
    .auth-content > p {
        font-size: 1.125rem;
    }
    
    .auth-stats {
        grid-template-columns: 1fr;
    }
    
    .block-center {
        display: block;
        margin: auto;
    }
    
    .form-group label {
        font-size: 1em;
    }
    
    .auth-form-container {
        padding-bottom: 3em;
    }
    .auth-form-wrapper {
        max-width: 100%;
    }
    .auth-badge {
        margin: auto;
    }
}

@media (max-width: 968px) {
    .auth-branding {
        display: none;
    }
    
    .auth-form-container {
        padding: 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.75rem;
    }
}
