/* =========================================================
   ThePDF – pages de connexion (FR / EN / ES)
   Couleurs d'origine : bouton vert #1dbf73, liens bleus #0d6efd,
   logo rouge. Toutes les règles sont préfixées par .lg-
   ========================================================= */
:root {
    --lg-green: #1dbf73;
    --lg-green-dark: #17a865;
    --lg-blue: #0d6efd;
    --lg-red-1: #EA3732;
    --lg-red-2: #B52824;
    --lg-text: #202020;
    --lg-muted: #6b7280;
    --lg-line: #e2e8f0;
    --lg-bg: #fdf8f0; /* rgb(253, 248, 240) */
}

.lg-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--lg-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--lg-text);
}

.lg-page *,
.lg-page *::before,
.lg-page *::after {
    box-sizing: border-box;
}

/* ---------- Header ---------- */
.lg-header {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 3%;
    background: var(--lg-bg);
}

.lg-logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    transition: transform .2s ease;
}

.lg-logo:hover {
    color: #1f2937;
    transform: translateY(-1px);
}

.lg-logo-pdf {
    display: inline-block;
    padding: 3px 7px 4px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(to right, var(--lg-red-1), var(--lg-red-2));
    box-shadow: 0 4px 12px rgba(234, 55, 50, 0.25);
}

/* ---------- Card ---------- */
.lg-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px 72px;
}

.lg-card {
    width: 100%;
    max-width: 460px;
    padding: 40px 36px 32px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.lg-title {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.lg-subtitle {
    margin: 0 0 28px;
    font-size: 15px;
    color: var(--lg-muted);
    text-align: center;
}

/* ---------- Social buttons ---------- */
.lg-social {
    display: grid;
    gap: 10px;
}

.lg-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fff;
    color: var(--lg-text);
    font: 600 15px/1 inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .1s ease;
}

.lg-social-btn:hover {
    border-color: #c7c7c7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    color: var(--lg-text);
}

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

.lg-social-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.lg-social-btn--apple {
    background: #000;
    border-color: #000;
    color: #fff;
}

.lg-social-btn--apple:hover {
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ---------- Separator ---------- */
.lg-sep {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a3a3a3;
}

.lg-sep::before,
.lg-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lg-line);
}

/* ---------- Form ---------- */
.lg-field {
    margin-bottom: 18px;
}

.lg-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lg-label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--lg-text);
}

.lg-label-row .lg-label {
    margin: 0;
}

.lg-input-wrap {
    position: relative;
}

.lg-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--lg-line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--lg-text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lg-input::placeholder {
    color: #a0aec0;
}

.lg-input:hover {
    border-color: #cbd5e1;
}

.lg-input:focus {
    border-color: var(--lg-green);
    box-shadow: 0 0 0 4px rgba(29, 191, 115, 0.15);
}

.lg-input--password {
    padding-right: 52px;
}

.lg-toggle-pass {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lg-muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s ease, color .2s ease;
}

.lg-toggle-pass:hover {
    background: #f1f5f9;
    color: var(--lg-text);
}

.lg-toggle-pass svg {
    width: 20px;
    height: 20px;
}

.lg-toggle-pass .lg-eye-off {
    display: none;
}

.lg-toggle-pass[aria-pressed="true"] .lg-eye {
    display: none;
}

.lg-toggle-pass[aria-pressed="true"] .lg-eye-off {
    display: block;
}

.lg-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--lg-blue);
    text-decoration: none;
}

.lg-link:hover {
    color: #0a58ca;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Error ---------- */
.lg-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 12px 14px;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
    background: #f8d7da;
    color: #842029;
    font-size: 14px;
    line-height: 1.5;
}

.lg-alert svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

/* ---------- Success ---------- */
.lg-alert--success {
    border-color: #a3cfbb;
    background: #d1e7dd;
    color: #0a3622;
}

.lg-alert strong {
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ---------- Icon (forgot password) ---------- */
.lg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(29, 191, 115, 0.12);
    color: var(--lg-green);
}

.lg-icon svg {
    width: 28px;
    height: 28px;
}

/* ---------- Back link ---------- */
.lg-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lg-back svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.lg-back:hover svg {
    transform: translateX(-3px);
}

/* ---------- Submit ---------- */
.lg-submit {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--lg-green);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(29, 191, 115, 0.30);
    transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.lg-submit:hover {
    background: var(--lg-green-dark);
    box-shadow: 0 10px 26px rgba(29, 191, 115, 0.38);
    transform: translateY(-1px);
}

.lg-submit:active {
    transform: translateY(0);
}

.lg-submit:disabled {
    opacity: .75;
    cursor: wait;
    transform: none;
}

/* ---------- Terms (sign up) ---------- */
.lg-terms {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--lg-muted);
    text-align: center;
}

.lg-terms span {
    color: var(--lg-blue);
    font-weight: 600;
}

/* ---------- Footer of the card ---------- */
.lg-switch {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--lg-line);
    font-size: 15px;
    color: var(--lg-muted);
    text-align: center;
}

.lg-switch .lg-link {
    font-size: 15px;
    margin-left: 4px;
}

/* ---------- Focus ---------- */
.lg-logo:focus-visible,
.lg-social-btn:focus-visible,
.lg-toggle-pass:focus-visible,
.lg-link:focus-visible,
.lg-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .lg-header {
        height: 60px;
        padding: 0 4%;
    }

    .lg-logo {
        font-size: 20px;
    }

    .lg-main {
        padding: 8px 12px 48px;
    }

    .lg-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .lg-title {
        font-size: 25px;
    }
}

/* Footer copyright (kept from the original page) */
@media (max-width: 768px) {
    .copyright {
        color: #fff;
        font-size: 16px;
        margin-left: -4px;
        margin-bottom: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-page * {
        transition: none !important;
    }
}