/* =================================================================
   AUTH PAGES - Thème basé sur index_s3.html
   Thème chaleureux et accessible pour les pages d'authentification
   ================================================================= */

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

:root {
    color-scheme: light only;

    /* Palette de couleurs chaudes et apaisantes */
    --primary: #8b7fb8;           /* Violet lavande doux */
    --primary-light: #b5a9d6;
    --primary-dark: #6d5f9f;
    --secondary: #f4a261;         /* Orange pêche */
    --accent: #e76f51;            /* Corail */
    --success: #81b29a;           /* Vert sauge */
    --bg-cream: #fef9f5;          /* Fond crème */
    --bg-peach: #fef3ed;          /* Fond pêche */
    --bg-lavender: #f3f0f8;       /* Fond lavande */
    --text-dark: #3d3d3d;         /* Texte sombre */
    --text-medium: #6b6b6b;       /* Texte moyen */
    --text-light: #9b9b9b;        /* Texte clair */
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--bg-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =================================================================
   NAVBAR
   ================================================================= */

.navbar {
    background: var(--bg-cream);
    padding: 1.5rem 0;
    border-bottom: 2px solid #f0e6d9;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    color: var(--secondary);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

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

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 127, 184, 0.3);
}

.btn-block {
    width: 100%;
}

/* =================================================================
   AUTH PAGE CONTENT
   ================================================================= */

.auth-page-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--bg-lavender) 0%, var(--bg-peach) 100%);
    position: relative;
}

.auth-page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(139, 127, 184, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.auth-card-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =================================================================
   FORMS
   ================================================================= */

.auth-form {
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-group label i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 127, 184, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* =================================================================
   INFO BOXES
   ================================================================= */

.auth-info-box {
    background: var(--bg-lavender);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.auth-info-box i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.auth-info-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-info-box p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =================================================================
   ALERTS
   ================================================================= */

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid var(--success);
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    border: 1px solid var(--accent);
    color: #c62828;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid var(--secondary);
    color: #f57c00;
}

.alert-info {
    background: var(--bg-lavender);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
}

/* =================================================================
   MAGIC LINK SENT PAGE
   ================================================================= */

.magic-link-sent {
    text-align: center;
    padding: 1rem;
}

.magic-link-sent > i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.magic-link-sent h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.main-message {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.main-message strong {
    color: var(--text-dark);
    word-break: break-all;
}

.instructions {
    background: var(--bg-lavender);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.instructions h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-medium);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.instructions li {
    margin-bottom: 0.5rem;
}

.help-box {
    background: #fff8e1;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: start;
    text-align: left;
}

.help-box > i {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.help-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.help-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.help-box li {
    margin-bottom: 0.25rem;
}

.expiration-notice {
    background: var(--bg-lavender);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 0.75rem;
    color: var(--text-medium);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.expiration-notice i {
    color: var(--primary);
}

.expiration-notice strong {
    color: var(--text-dark);
}

/* =================================================================
   UTILITIES
   ================================================================= */

.mt-3 {
    margin-top: 1.5rem;
}

/* =================================================================
   FOOTER
   ================================================================= */

footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

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

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
