/* TapNow — Pages auth (login, reset, etc.) */
/* DA APP : fond clair, card centrale, simple */

:root {
    /* Palette officielle */
    --marine:        #031C49;
    --marine-light:  #0A2D6B;
    --marine-dark:   #021232;

    --ciel:          #58C4F3;
    --ciel-light:    #8BD7F7;
    --ciel-dark:     #2EA8DD;

    /* Aliases sémantiques */
    --primary:       #031C49;
    --primary-light: #0A2D6B;
    --primary-dark:  #021232;
    --accent:        #58C4F3;
    --accent-light:  #E1F4FD;

    --success:       #16A34A;
    --danger:        #DC2626;
    --info:          #0EA5E9;
    --warning:       #F59E0B;

    --bg:            #F8FAFC;
    --gray-50:       #F8FAFC;
    --gray-100:      #F1F5F9;
    --gray-200:      #E2E8F0;
    --gray-300:      #CBD5E1;
    --gray-400:      #94A3B8;
    --gray-500:      #64748B;
    --gray-700:      #334155;
    --gray-900:      #0F172A;

    --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 2px 8px rgba(3, 28, 73, 0.08);
    --shadow-lg:  0 8px 24px rgba(3, 28, 73, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

body.auth-body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--gray-900);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    line-height: 1.5;
}

.auth-wrapper { width: 100%; max-width: 440px; }

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 24px; }

.auth-title {
    font-size: 22px; font-weight: 700; text-align: center;
    margin-bottom: 8px; color: var(--marine);
}

.auth-subtitle {
    text-align: center; color: var(--gray-500);
    margin-bottom: 28px; font-size: 15px;
}

.auth-help {
    text-align: center; color: var(--gray-500);
    font-size: 13px; margin-bottom: 20px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.label-row { display: flex; justify-content: space-between; align-items: center; }

label { font-weight: 500; font-size: 14px; color: var(--gray-700); }

input[type=email], input[type=password], input[type=text], input[type=tel],
select, textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--gray-300); border-radius: var(--radius-md);
    font-size: 15px; font-family: inherit; color: var(--gray-900); background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--ciel);
    box-shadow: 0 0 0 3px rgba(88, 196, 243, 0.18);
}

.help-text { font-size: 12px; color: var(--gray-500); }

.btn {
    display: inline-block; padding: 12px 24px;
    border-radius: var(--radius-md); font-size: 15px; font-weight: 600;
    font-family: inherit; text-decoration: none; cursor: pointer; border: none;
    transition: all 0.15s; text-align: center;
}

.btn:active { transform: translateY(1px); }

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

.btn-secondary { background: white; color: var(--marine); border: 1px solid var(--marine); }
.btn-secondary:hover { background: var(--gray-50); }

.btn-block { display: block; width: 100%; }

.btn-accent { background: var(--ciel); color: var(--marine); }
.btn-accent:hover { background: var(--ciel-dark); color: white; }

.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px; }
.alert-danger { background: #FEF2F2; color: #991B1B; border-left: 3px solid var(--danger); }
.alert-success { background: #F0FDF4; color: #166534; border-left: 3px solid var(--success); }
.alert-info { background: var(--accent-light); color: var(--marine); border-left: 3px solid var(--ciel); }
.alert-warning { background: #FFFBEB; color: #92400E; border-left: 3px solid var(--warning); }

.auth-divider { display: flex; align-items: center; margin: 24px 0; color: var(--gray-400); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }
.auth-divider span { padding: 0 12px; }

.link-small { font-size: 13px; color: var(--marine); text-decoration: none; }
.link-small:hover { text-decoration: underline; }

.link-primary { color: var(--marine); text-decoration: none; font-weight: 500; }
.link-primary:hover { color: var(--ciel-dark); text-decoration: underline; }

.auth-cta { text-align: center; color: var(--gray-500); font-size: 14px; line-height: 1.6; }

.auth-footer { text-align: center; color: var(--gray-400); font-size: 12px; margin-top: 24px; }

.success-state { text-align: center; }
.success-icon { font-size: 56px; margin-bottom: 16px; }

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .auth-title { font-size: 20px; }
}
