@import url("site-theme.css?v=20261003-fixed-colors-1");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap");

html {
    min-height: 100%;
    background: var(--theme-c-07152f);
    scrollbar-width: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--theme-c-f7fbff);
    font-family: "Nunito", Arial, sans-serif;
}

.auth-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 20px;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--theme-c-07152f);
}

.auth-page::before,
.auth-page::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

.auth-page::before {
    z-index: 0;
    background: url("../images/backgrounds/bg.webp") no-repeat center center / cover;
    filter: blur(7px);
    transform: scale(1.03);
}

.auth-page::after {
    z-index: 0;
    background: linear-gradient(145deg, var(--theme-c-05112d-6200), var(--theme-c-260c43-7000));
}

.auth-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 72px);
    width: min(100%, 980px);
    padding: 34px clamp(24px, 6vw, 48px);
    border: 1px solid var(--fixed-c-62d5ff-4500);
    border-radius: 24px;
    background: var(--fixed-c-051b41-8600);
    box-shadow: 0 24px 60px var(--fixed-c-000000-3800), inset 0 0 35px var(--fixed-c-36bbff-800);
}

.auth-login-panel {
    min-width: 0;
}

.game-introduction {
    align-self: center;
    min-width: 0;
    padding: 8px 0;
}

.game-introduction-kicker {
    margin: 0 0 8px;
    color: var(--theme-c-efb9ff);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .15em;
}

.game-introduction h2 {
    margin: 0;
    color: var(--theme-c-ffffff);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.1;
}

.game-introduction > p:not(.game-introduction-kicker):not(.game-introduction-note) {
    margin: 12px 0 22px;
    color: var(--theme-c-b8c9e4);
    line-height: 1.5;
}

.game-introduction-steps {
    display: grid;
    gap: 12px;
}

.game-introduction-steps article {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.game-introduction-steps article > span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--theme-c-62d5ff-4500);
    border-radius: 50%;
    color: var(--theme-c-69ddff);
    font-weight: 900;
    background: var(--theme-c-2bb6ff-1200);
}

.game-introduction-steps strong,
.game-introduction-steps small {
    display: block;
}

.game-introduction-steps strong {
    color: var(--theme-c-f6eaff);
    font-size: .9rem;
}

.game-introduction-steps small {
    margin-top: 2px;
    color: var(--theme-c-91a9ca);
    font-size: .78rem;
    line-height: 1.4;
}

.rarity-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
}

.rarity-guide div {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 10px 12px 9px 16px;
    overflow: hidden;
    border: 1px solid var(--fixed-c-82d2ff-2400);
    border-radius: 11px;
    background: linear-gradient(135deg, var(--fixed-c-122c58-7200), var(--fixed-c-010c23-5000));
    box-shadow: inset 0 1px var(--fixed-c-ffffff-500), 0 5px 14px var(--fixed-c-000000-1200);
}

.rarity-guide div::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    background: var(--fixed-c-b7bfdc);
    box-shadow: 0 0 10px currentColor;
}

.rarity-guide b {
    white-space: nowrap;
    font-weight: 900;
}

.rarity-guide span {
    color: var(--fixed-c-9db3d1);
    font-size: .7rem;
    letter-spacing: .02em;
}

.rarity-guide div:has(.rarity-legendary)::before { background: var(--fixed-c-ffcf70); }
.rarity-guide div:has(.rarity-epic)::before { background: var(--fixed-c-ef86ff); }
.rarity-guide div:has(.rarity-rare)::before { background: var(--fixed-c-7eb5ff); }
.rarity-guide div:has(.rarity-uncommon)::before { background: var(--fixed-c-6ee7b7); }
.rarity-guide div:has(.rarity-common)::before { background: var(--fixed-c-b7bfdc); }

.rarity-legendary { color: var(--fixed-c-ffcf70); }
.rarity-epic { color: var(--fixed-c-ef86ff); }
.rarity-rare { color: var(--fixed-c-7eb5ff); }
.rarity-uncommon { color: var(--fixed-c-6ee7b7); }
.rarity-common { color: var(--fixed-c-b7bfdc); }

.game-introduction-note {
    margin: 14px 0 0;
    color: var(--theme-c-ffd875);
    font-size: .76rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--theme-c-ffffff);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.auth-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--theme-c-ffc12d-5500));
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.35rem);
}

.auth-subtitle {
    margin: 9px 0 26px;
    color: var(--theme-c-b8c9e4);
    text-align: center;
}

.auth-card form {
    display: grid;
    width: 100%;
    gap: 9px;
}

.auth-card label {
    color: var(--fixed-c-c9e5fa);
    font-size: .82rem;
    font-weight: 800;
}

.optional-field {
    color: var(--theme-c-91b7d5);
    font-size: .72rem;
    font-weight: 700;
}

.auth-card input {
    width: 100%;
    margin-bottom: 8px;
    padding: 13px 14px;
    border: 1px solid var(--fixed-c-7dc7ef-3500);
    border-radius: 10px;
    outline: none;
    color: var(--fixed-c-ffffff);
    font: inherit;
    background: var(--fixed-c-010c23-7200);
    transition: border-color .2s, box-shadow .2s;
}

.auth-card input:focus {
    border-color: var(--fixed-c-46d5ff);
    box-shadow: 0 0 0 3px var(--fixed-c-36cbff-1500);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0 2px;
    color: var(--theme-c-b8c9e4);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
}

.auth-card .remember-me input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--fixed-c-36cbff);
}

.auth-card button {
    margin-top: 10px;
    padding: 13px 18px;
    border: 1px solid var(--fixed-c-62d5ff-6500);
    border-radius: 11px;
    color: var(--fixed-c-ffffff);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    background: linear-gradient(120deg, var(--fixed-c-1478d6), var(--fixed-c-0a9fe0));
    box-shadow: 0 10px 24px var(--fixed-c-1482dc-3000);
    transition: filter .2s, transform .2s;
}

.auth-card button:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.auth-error {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid var(--theme-c-ff7093-5500);
    border-radius: 10px;
    color: var(--theme-c-ffd4df);
    font-size: .86rem;
    background: var(--theme-c-821942-3500);
}

.auth-error p {
    margin: 0;
}

.auth-error p + p {
    margin-top: 5px;
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--theme-c-a9c1df);
    text-align: center;
    font-size: .88rem;
}

.auth-switch a {
    color: var(--theme-c-69ddff);
    font-weight: 900;
}

@media (max-width: 800px) {
    .auth-card {
        grid-template-columns: 1fr;
        gap: 34px;
        width: min(100%, 520px);
    }

    .game-introduction {
        padding-top: 0;
    }
}

@media (min-width: 801px) and (max-width: 1050px) {
    .auth-card {
        gap: clamp(20px, 3vw, 32px);
        padding-inline: clamp(22px, 3vw, 32px);
    }
}

/* Écrans de portable : garder les deux colonnes sans allonger inutilement la page. */
@media (min-width: 801px) and (max-height: 800px) {
    .auth-page {
        padding: 14px 18px;
    }

    .auth-card {
        gap: clamp(20px, 3vw, 38px);
        padding: 20px clamp(22px, 3vw, 36px);
    }

    .auth-brand {
        margin-bottom: 14px;
    }

    .auth-subtitle {
        margin: 6px 0 16px;
    }

    .auth-switch {
        margin-top: 15px;
    }

    .game-introduction {
        padding: 0;
    }

    .game-introduction > p:not(.game-introduction-kicker):not(.game-introduction-note) {
        margin: 8px 0 14px;
        line-height: 1.35;
    }

    .game-introduction-steps {
        gap: 7px;
    }

    .game-introduction-steps small {
        line-height: 1.3;
    }

    .rarity-guide {
        gap: 6px;
        margin-top: 14px;
    }

    .rarity-guide div {
        min-height: 50px;
        padding: 7px 9px 7px 12px;
    }

    .game-introduction-note {
        margin-top: 9px;
    }
}

@media (max-width: 430px) {
    .auth-page {
        padding: 15px;
    }

    .auth-card {
        padding: 28px 20px;
    }
}