/* ═══════════════════════════════════════════════════════════════════
   La Cantine — Login Admin
   Custom CSS · Design "Restauration premium"
   ═══════════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

.lc-login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #FAFAF7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1A1A1A;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── LAYOUT GLOBAL ────────────────────────────────────────────── */
.lc-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDE GAUCHE : FORMULAIRE
   ═══════════════════════════════════════════════════════════════════ */
.lc-form-side {
    width: 46%;
    background: #FAFAF7;
    padding: 40px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 100vh;
}

/* ─── Top bar : logo + SSL ─────────────────────────────────────── */
.lc-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.lc-brand-mark {
    width: 34px;
    height: 34px;
    background: #1A1A1A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-brand-mark span {
    color: #DC582A;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
}

.lc-brand-name {
    color: #1A1A1A;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.1px;
}

.lc-brand-sub {
    color: #8A8A8A;
    font-size: 10px;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lc-ssl-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: white;
    border: 1px solid #E8E5E0;
    border-radius: 6px;
}

.lc-ssl-badge i {
    font-size: 13px;
    color: #1B8A5A;
}

.lc-ssl-badge span {
    font-size: 10px;
    color: #1A1A1A;
    font-weight: 500;
}

/* ─── Formulaire centré ────────────────────────────────────────── */
.lc-form-wrap {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}

/* Eyebrow tag */
.lc-eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(220, 88, 42, 0.08);
    border: 1px solid rgba(220, 88, 42, 0.18);
    border-radius: 4px;
    margin-bottom: 22px;
}

.lc-eyebrow-tag i {
    font-size: 11px;
    color: #DC582A;
}

.lc-eyebrow-tag span {
    font-size: 10px;
    color: #DC582A;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Titre */
.lc-title {
    font-size: 30px;
    font-weight: 400;
    color: #1A1A1A;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0 0 10px;
    font-family: 'Fraunces', Georgia, serif;
}

.lc-title em {
    font-style: italic;
    color: #DC582A;
}

.lc-title span {
    color: #1A1A1A;
}

.lc-subtitle {
    font-size: 13px;
    color: #8A8A8A;
    line-height: 1.55;
    margin: 0 0 32px;
}

/* ─── Champs ───────────────────────────────────────────────────── */
.lc-field {
    margin-bottom: 14px;
}

.lc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.lc-label {
    display: block;
    font-size: 11px;
    color: #1A1A1A;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.lc-label-row .lc-label {
    margin-bottom: 0;
}

.lc-label-link {
    font-size: 11px;
    color: #DC582A;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.15s;
}

.lc-label-link:hover {
    opacity: 0.7;
    color: #DC582A;
}

.lc-input-wrap {
    position: relative;
}

.lc-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: white;
    border: 1px solid #E8E5E0;
    border-radius: 8px;
    font-size: 13px;
    color: #1A1A1A;
    font-family: inherit;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.lc-input:hover {
    border-color: #D4D0CA;
}

.lc-input:focus {
    border-color: #DC582A;
    box-shadow: 0 0 0 3px rgba(220, 88, 42, 0.08);
}

.lc-input::placeholder {
    color: #C8C4BE;
    letter-spacing: normal;
}

.lc-input[type="password"] {
    letter-spacing: 2px;
}

.lc-input[type="password"]::placeholder {
    letter-spacing: 2px;
}

.lc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #A8A29E;
    pointer-events: none;
}

/* Bouton afficher mot de passe */
.lc-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s;
}

.lc-password-toggle:hover {
    background: #F5F3EE;
}

.lc-password-toggle i {
    font-size: 15px;
    color: #A8A29E;
}

/* Erreur champ */
.lc-field-error {
    display: block;
    font-size: 11px;
    color: #D93025;
    margin-top: 4px;
    font-weight: 500;
}

/* ─── Rester connecté ──────────────────────────────────────────── */
.lc-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 24px;
    user-select: none;
}

.lc-remember .lc-check {
    width: 14px;
    height: 14px;
    border: 1px solid #D4D0CA;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    accent-color: #DC582A;
}

.lc-remember span {
    font-size: 12px;
    color: #1A1A1A;
}

/* ─── Bouton submit ────────────────────────────────────────────── */
.lc-submit {
    width: 100%;
    padding: 13px 16px;
    background: #1A1A1A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.1s;
}

.lc-submit:hover {
    background: #2A2A2A;
}

.lc-submit:active {
    transform: scale(0.99);
}

.lc-submit:disabled {
    background: #8A8A8A;
    cursor: not-allowed;
}

.lc-submit-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}

.lc-submit:hover .lc-submit-arrow {
    transform: translateX(3px);
}

/* ─── Footer formulaire ────────────────────────────────────────── */
.lc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #A8A29E;
}

.lc-link-accent {
    color: #DC582A;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.lc-link-accent:hover {
    opacity: 0.7;
    color: #DC582A;
}

/* ─── Alertes ──────────────────────────────────────────────────── */
.lc-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 12px;
    border: 1px solid;
}

.lc-alert-danger {
    background: #FDECEA;
    border-color: rgba(217, 48, 37, 0.2);
    color: #D93025;
}

.lc-alert-success {
    background: #E6F5EF;
    border-color: rgba(27, 138, 90, 0.2);
    color: #1B8A5A;
}

.lc-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.lc-alert span {
    flex: 1;
}

.lc-alert-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    opacity: 0.6;
}

.lc-alert-close:hover {
    opacity: 1;
}

.lc-alert-close i {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDE DROIT : IMAGE + OVERLAY
   ═══════════════════════════════════════════════════════════════════ */
.lc-visual-side {
    flex: 1;
    position: relative;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 100vh;
}

/* 🚀 IMAGE DE FOND : modifiez l'URL ici pour changer la photo */
.lc-visual-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1547573854-74d2a71d0826?w=1600&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay sombre pour la lisibilité */
.lc-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 16, 8, 0.75) 0%,
        rgba(40, 20, 10, 0.5) 50%,
        rgba(26, 16, 8, 0.85) 100%
    );
    z-index: 2;
}

/* Le contenu est au-dessus de l'overlay */
.lc-visual-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* ─── Top : badge service ──────────────────────────────────────── */
.lc-visual-top {
    display: flex;
    justify-content: flex-end;
}

.lc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.lc-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #DC582A;
    box-shadow: 0 0 8px #DC582A;
    animation: lc-pulse 2s ease-in-out infinite;
}

@keyframes lc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.lc-live-badge span {
    color: white;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ─── Center : éditorial ───────────────────────────────────────── */
.lc-visual-editorial {
    max-width: 500px;
}

.lc-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.lc-eyebrow-line {
    width: 24px;
    height: 1px;
    background: #DC582A;
}

.lc-eyebrow-text {
    color: #DC582A;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lc-visual-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 44px;
    font-weight: 400;
    color: white;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 20px;
}

.lc-visual-headline em {
    font-style: italic;
    color: #DC582A;
}

.lc-visual-subtext {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0;
}

/* ─── Bottom : citation ────────────────────────────────────────── */
.lc-visual-quote {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 20px 22px;
    background: rgba(20, 12, 6, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.lc-quote-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(220, 88, 42, 0.2);
    border: 1px solid rgba(220, 88, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-quote-icon i {
    font-size: 16px;
    color: #DC582A;
}

.lc-quote-body {
    flex: 1;
}

.lc-quote-text {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: white;
    line-height: 1.5;
    margin-bottom: 8px;
}

.lc-quote-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lc-quote-line {
    width: 16px;
    height: 1px;
    background: rgba(220, 88, 42, 0.6);
}

.lc-quote-author span:last-child {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* Tablette : on cache le côté droit */
@media (max-width: 1024px) {
    .lc-form-side {
        width: 100%;
        padding: 32px 40px;
    }

    .lc-visual-side {
        display: none;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .lc-form-side {
        padding: 24px 20px;
    }

    .lc-title {
        font-size: 26px;
    }

    .lc-visual-headline {
        font-size: 32px;
    }

    .lc-form-wrap {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOT DE PASSE OUBLIÉ — Indicateur d'étapes
   ═══════════════════════════════════════════════════════════════════ */
.lc-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
}

.lc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lc-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E8E5E0;
    color: #A8A29E;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lc-step-label {
    font-size: 10px;
    color: #A8A29E;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.lc-step-line {
    flex: 1;
    height: 1px;
    background: #E8E5E0;
    margin: 0 6px;
    margin-bottom: 22px;
    transition: background 0.3s;
}

.lc-step-line-done {
    background: #DC582A;
}

.lc-step-active .lc-step-num {
    background: #DC582A;
    color: white;
    box-shadow: 0 0 0 4px rgba(220, 88, 42, 0.15);
}

.lc-step-active .lc-step-label {
    color: #DC582A;
    font-weight: 600;
}

.lc-step-done .lc-step-num {
    background: #1B8A5A;
    color: white;
}

.lc-step-done .lc-step-label {
    color: #1B8A5A;
}

/* ── Lien retour ────────────────────────────────────────────────── */
.lc-forgot-back {
    margin-top: 20px;
    text-align: center;
}

.lc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #A8A29E;
    text-decoration: none;
    transition: color 0.2s;
}

.lc-back-link:hover {
    color: #DC582A;
}

/* ── Timer OTP ──────────────────────────────────────────────────── */
.lc-otp-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 88, 42, 0.08);
    border: 1px solid rgba(220, 88, 42, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #DC582A;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.lc-otp-timer i {
    font-size: 15px;
}

.lc-otp-timer-expired {
    background: rgba(217, 48, 37, 0.08);
    border-color: rgba(217, 48, 37, 0.3);
    color: #D93025;
}

/* ── Champs OTP 6 chiffres ──────────────────────────────────────── */
.lc-otp-group {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.lc-otp-digit {
    flex: 1;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1A1A1A;
    background: white;
    border: 1.5px solid #E8E5E0;
    border-radius: 10px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    caret-color: #DC582A;
}

.lc-otp-digit:focus {
    border-color: #DC582A;
    box-shadow: 0 0 0 3px rgba(220, 88, 42, 0.1);
}

.lc-otp-digit:not(:placeholder-shown) {
    border-color: #D4D0CA;
    background: #FAFAF7;
}

/* ── Renvoyer le code ────────────────────────────────────────────── */
.lc-otp-resend {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #A8A29E;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lc-resend-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #DC582A;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.2s;
}

.lc-resend-btn:disabled {
    color: #A8A29E;
    cursor: not-allowed;
}

.lc-resend-btn:not(:disabled):hover {
    opacity: 0.7;
}

/* ── Indicateur de force du mot de passe ─────────────────────────── */
.lc-strength-bar {
    height: 4px;
    background: #E8E5E0;
    border-radius: 2px;
    overflow: hidden;
}

.lc-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.lc-strength-label {
    font-size: 10px;
    font-weight: 500;
    margin-top: 3px;
    display: block;
    letter-spacing: 0.3px;
}

/* ─── Accessibility : reduce motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lc-live-dot {
        animation: none;
    }

    .lc-submit:hover .lc-submit-arrow {
        transform: none;
    }
}