/*
 * Chasse à Pêche V2 - Auth pages
 * Pages concernées : login, dev-login, instructions, abonnement inactif si base_auth est utilisée.
 */

/* ==========================================================
   Auth layout
   ========================================================== */

.cap-auth-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, rgba(82, 97, 92, 0.94) 0%, rgba(38, 52, 47, 0.98) 100%), radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 36%);
    color: #ffffff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cap-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 18px;
}

.cap-auth-shell {
    width: min(1320px, 100%);
}

.cap-auth-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.cap-auth-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.cap-auth-logo img {
    max-width: 250px;
    height: auto;
    display: block;
}

.cap-auth-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .90);
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .02em;
    backdrop-filter: blur(12px);
}

/* ==========================================================
   Auth card
   ========================================================== */

.cap-auth-card {
    width: min(560px, 100%);
    margin: 0 auto;
    border-radius: 32px;
    background: rgba(255, 255, 255, .97);
    color: #17231b;
    border: 1px solid rgba(255, 255, 255, .50);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .30),
        inset 0 1px 0 rgba(255, 255, 255, .75);
}

.cap-auth-card-large {
    width: 100%;
}

.cap-auth-title {
    margin: 0;
    color: #17231b;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.cap-auth-subtitle {
    color: #66736b;
    font-size: 1.06rem;
    font-weight: 750;
    line-height: 1.55;
}

.cap-auth-muted {
    color: #66736b;
    font-weight: 750;
    line-height: 1.55;
}

/* ==========================================================
   Alert auth
   ========================================================== */

.cap-auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(154, 52, 18, .08);
}

.cap-auth-alert i {
    font-size: 1.2rem;
}

.cap-auth-alert-large {
    font-size: 1rem;
}

/* ==========================================================
   Dev login grid - grandes cartes lisibles
   ========================================================== */

.cap-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(480px, 1fr));
    gap: 30px;
}

.cap-auth-grid-large {
    align-items: stretch;
}

.cap-auth-grid-demo {
    grid-template-columns: minmax(320px, 620px);
    justify-content: center;
}

.cap-auth-profile-card {
    width: 100%;
    min-width: 0;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e7eee9;
    box-shadow: 0 18px 45px rgba(15, 24, 19, .08);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.cap-auth-profile-card:hover {
    transform: translateY(-2px);
    border-color: rgba(82, 97, 92, .28);
    box-shadow: 0 24px 55px rgba(15, 24, 19, .12);
}

.cap-auth-profile-card-large {
    min-height: 100%;
}

.cap-auth-grid-demo .cap-auth-profile-card-large {
    min-height: auto;
}

.cap-auth-profile-title {
    margin: 0;
    color: #17231b;
    font-family: Poppins, Inter, sans-serif;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.cap-auth-profile-title-large {
    font-size: 1.65rem;
}

.cap-auth-profile-description {
    min-height: auto;
    font-size: 1rem;
    line-height: 1.55;
}

/* ==========================================================
   Info boxes
   ========================================================== */

.cap-auth-info-box {
    border-radius: 24px;
    background: #f8faf8;
    border: 1px solid #e7eee9;
}

.cap-auth-info-label {
    display: flex;
    align-items: center;
    color: #52615c;
    font-size: .84rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.cap-auth-info-label i {
    color: #52615c;
}

.cap-auth-user-email {
    display: block;
    color: #17231b;
    font-size: 1.05rem;
    font-weight: 950;
    word-break: break-word;
}

.cap-auth-meta-list {
    list-style: none;
    padding: 0;
}

.cap-auth-meta-list-large {
    margin: 0;
}

.cap-auth-association-name {
    color: #17231b;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.25;
}

/* ==========================================================
   Pills / badges
   ========================================================== */

.cap-auth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf4ec;
    color: #2f7d4f;
    border: 1px solid rgba(47, 125, 79, .14);
    font-size: .82rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.cap-auth-pill-info {
    background: #eff6ff;
    color: #2563eb;
    border-color: rgba(37, 99, 235, .14);
}

.cap-auth-pill-large {
    min-height: 38px;
    padding-inline: 14px;
}

/* ==========================================================
   Buttons
   ========================================================== */

.cap-auth-btn {
    width: 100%;
    border: 0;
    border-radius: 20px;
    background: #52615c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(82, 97, 92, .26);
    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.cap-auth-btn:hover,
.cap-auth-btn:focus-visible {
    background: #3f4c47;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(82, 97, 92, .30);
}

.cap-auth-btn:active {
    transform: translateY(0);
}

.cap-auth-btn-large {
    min-height: 60px;
    font-size: 1rem;
}

/* ==========================================================
   Classic login form compatibility
   ========================================================== */

.cap-auth-form {
    display: grid;
    gap: 18px;
}

.cap-auth-field {
    display: grid;
    gap: 8px;
}

.cap-auth-label {
    color: #17231b;
    font-size: .92rem;
    font-weight: 900;
}

.cap-auth-input {
    width: 100%;
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid #dfe8e2;
    background: #f8faf8;
    color: #17231b;
    padding: 0 16px;
    font-size: 1rem;
    font-weight: 750;
    outline: none;
    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.cap-auth-input:focus {
    background: #ffffff;
    border-color: rgba(82, 97, 92, .45);
    box-shadow: 0 0 0 4px rgba(82, 97, 92, .12);
}

.cap-auth-link {
    color: #52615c;
    font-weight: 900;
    text-decoration: none;
}

.cap-auth-link:hover {
    color: #2f3d38;
    text-decoration: underline;
}

/* ==========================================================
   Dev login lisibilité
   ========================================================== */

.cap-auth-profile-card .d-flex.flex-wrap {
    gap: 10px !important;
}

.cap-auth-profile-card li {
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2ef;
}

.cap-auth-profile-card li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cap-auth-profile-card .cap-auth-muted strong {
    color: #17231b;
}

.cap-auth-profile-card form {
    margin-top: 18px !important;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1499.98px) {
    .cap-auth-grid {
        grid-template-columns: 1fr;
    }

    .cap-auth-profile-card {
        max-width: 940px;
        margin-inline: auto;
    }
}

@media (max-width: 1199.98px) {
    .cap-auth-shell {
        width: min(980px, 100%);
    }

    .cap-auth-profile-card {
        max-width: 900px;
    }
}

@media (max-width: 767.98px) {
    .cap-auth-page {
        align-items: flex-start;
        padding: 22px 12px;
    }

    .cap-auth-brand {
        display: grid;
        justify-items: center;
        text-align: center;
        gap: 14px;
        margin-bottom: 18px;
    }

    .cap-auth-logo img {
        max-width: 210px;
    }

    .cap-auth-badge {
        min-height: 38px;
        font-size: .8rem;
    }

    .cap-auth-card {
        border-radius: 24px;
    }

    .cap-auth-title {
        font-size: 1.85rem;
    }

    .cap-auth-subtitle {
        font-size: .98rem;
    }

    .cap-auth-profile-card {
        max-width: 100%;
        border-radius: 24px;
    }

    .cap-auth-profile-title-large {
        font-size: 1.35rem;
    }

    .cap-auth-info-box {
        border-radius: 20px;
    }

    .cap-auth-btn-large {
        min-height: 58px;
    }

    .cap-auth-pill {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .cap-auth-title {
        font-size: 1.65rem;
    }

    .cap-auth-card {
        border-radius: 22px;
    }

    .cap-auth-logo img {
        max-width: 190px;
    }

    .cap-auth-profile-card {
        border-radius: 22px;
    }
}

.cap-auth-label {
    display: block;
    font-weight: 800;
    color: #24352f;
    font-size: .92rem;
}

/* Demo login: one profile card, always centered. Kept at the end to win over responsive rules. */
.cap-auth-grid.cap-auth-grid-demo {
    display: grid;
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
    justify-items: stretch;
    width: 100%;
    margin-inline: auto;
}

.cap-auth-grid.cap-auth-grid-demo .cap-auth-profile-card {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
}

.cap-auth-input-wrap {
    position: relative;
}

.cap-auth-input-wrap > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6f8a7d;
    font-size: 1.05rem;
    pointer-events: none;
}

.cap-auth-input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(95, 127, 115, .25);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    padding: 0 18px 0 50px;
    color: #24352f;
    font-weight: 700;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cap-auth-input:focus {
    border-color: #5f7f73;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(95, 127, 115, .14);
}

.cap-auth-input::placeholder {
    color: #9aa8a1;
    font-weight: 500;
}

.cap-auth-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
}

.cap-auth-link:hover {
    color: #3f5f54;
}
