/* ═══════════════════════════════════════════════════════════════
   BRIO STUDIOS — Connexion
   Design system: black/white + #C55A36 orange accent
   Shared language with style_inscription.css
   ═══════════════════════════════════════════════════════════════ */

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

body {
    background-color: #f7f5f3;
    font-family: 'Lato', sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────────────────────── */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eee;
    z-index: 50;
}

.center_header {
    display: flex;
    align-items: center;
    gap: 6px;
}

header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #000;
    font-family: var(--font-family-logo, 'Lato', sans-serif);
    letter-spacing: -2px;
    text-transform: uppercase;
    cursor: pointer;
}

header img {
    width: 32px;
    height: 32px;
}

.gotoquit {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gotoquit span {
    font-size: 18px;
    color: #555;
}

.gotoquit:hover {
    background: #f0ebe8;
    color: #000;
}

.gotoquit:hover span {
    color: #000;
}

/* ── Container ───────────────────────────────────────────────── */

.center_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 48px 24px;
    min-height: 75vh;
}

/* ── Sections (cards) ────────────────────────────────────────── */

section {
    display: block;
    width: 640px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 44px;
    background: #fff;
    border: 1px solid #e8e3df;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

/* ── Section header ──────────────────────────────────────────── */

.section_header {
    text-align: center;
    margin-bottom: 28px;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    padding-bottom: 4px;
    text-align: center;
}

.section_subtitle {
    font-size: 14px;
    color: #888;
}

/* Icon holders */
.login_icon_holder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(197, 90, 54, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login_icon_holder span {
    font-size: 30px;
    color: #C55A36;
}

.icon_warn {
    background: #FEF3C7;
}

.icon_warn span {
    color: #d97706;
}

.success_icon_holder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.success_icon_holder span {
    font-size: 40px;
    color: #16a34a;
}

.soon_icon_holder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(197, 90, 54, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.soon_icon_holder span {
    font-size: 36px;
    color: #C55A36;
}

/* ── Inputs ──────────────────────────────────────────────────── */

.oneinpt {
    display: block;
    position: relative;
    width: 100%;
}

.oneinptmargintop {
    margin-top: 16px;
}

.inptlabel {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

/* Label row with forgot link */
.label_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.label_row .inptlabel {
    margin-bottom: 0;
}

.forgot_link {
    font-size: 12px;
    font-weight: 500;
    color: #C55A36;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot_link:hover {
    color: #ad4c2c;
    text-decoration: underline;
}

/* Input with icon */
.input_with_icon {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input_with_icon:focus-within {
    border-color: #C55A36;
    box-shadow: 0 0 0 3px rgba(197, 90, 54, 0.1);
}

.input_with_icon span {
    font-size: 20px;
    color: #bbb;
    margin-right: 10px;
    flex-shrink: 0;
}

.input_with_icon:focus-within span {
    color: #C55A36;
}

.input_with_icon .inpt {
    border: none;
    padding: 12px 0;
    flex: 1;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
}

.input_with_icon .inpt::placeholder {
    color: #bbb;
}

/* Standalone bordered input (for grid) */
.inpt_bordered {
    display: block;
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inpt_bordered:focus {
    border-color: #C55A36;
    box-shadow: 0 0 0 3px rgba(197, 90, 54, 0.1);
}

.inpt_bordered::placeholder {
    color: #bbb;
}

/* Legacy inptholder compat (if JS still uses it) */
.inptholder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #ddd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inptholder:focus-within {
    border-color: #C55A36;
    box-shadow: 0 0 0 3px rgba(197, 90, 54, 0.1);
}

.inptholder .inpt {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

/* Form grid */
.form_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Error messages ──────────────────────────────────────────── */

.error_msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.primary_btn {
    display: block;
    width: 100%;
    background: #C55A36;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.primary_btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.primary_btn:hover::after {
    transform: translateX(0);
}

.primary_btn:hover {
    background: #ad4c2c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(197, 90, 54, 0.25);
}

.primary_btn:active {
    transform: scale(0.98);
}

.btn_compact {
    width: auto;
    padding: 14px 40px;
    margin: 16px auto 0;
}

.secondary_btn {
    display: block;
    width: 100%;
    background: #fff;
    color: #C55A36;
    border: 1.5px solid #C55A36;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    padding: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.secondary_btn:hover {
    background: rgba(197, 90, 54, 0.04);
    border-color: #ad4c2c;
    color: #ad4c2c;
}

/* ── Separator ───────────────────────────────────────────────── */

.separator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
}

.separator_line {
    flex: 1;
    height: 1px;
    background: #e8e3df;
}

.separator_text {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
    text-transform: lowercase;
}

/* ── Back to login link ──────────────────────────────────────── */

.back_to_login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back_to_login span {
    font-size: 18px;
    color: #555;
}

.back_to_login:hover {
    color: #C55A36;
}

.back_to_login:hover span {
    color: #C55A36;
}

/* ── Code input ──────────────────────────────────────────────── */

.code-input {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.code-input input {
    width: 52px;
    height: 60px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.2s ease;
    outline: none;
}

.code-input input:focus {
    border-color: #C55A36;
    box-shadow: 0 0 0 3px rgba(197, 90, 54, 0.12);
    background: #fff;
}

/* ── Success / status sections ───────────────────────────────── */

.center_success {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    text-align: center;
}

.title_sucess {
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0a;
}

.success_sub {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    max-width: 340px;
}

/* ── Charte qualité ──────────────────────────────────────────── */

#middle4bis { display: none; }

.charte_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C55A36;
    background: rgba(197, 90, 54, 0.08);
    border: 1px solid rgba(197, 90, 54, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.charte_badge span {
    font-size: 16px;
    color: #C55A36;
}

.chart_container_host {
    display: block;
    max-height: 380px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 12px;
    border: 1.5px solid #e8e3df;
    background: #fafaf9;
}

.chart_container_host::-webkit-scrollbar {
    width: 4px;
}

.chart_container_host::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.content_charte p {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 4px 0;
}

.avertissement_chart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 13px;
    color: #888;
    background: #f7f5f3;
    padding: 10px 14px;
    border-radius: 8px;
}

.avertissement_chart span {
    font-size: 18px;
    color: #bbb;
}

.line_flexer_btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.refused_btn {
    background: #f5f5f5;
    color: #aaa;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    cursor: default;
    transition: all 0.2s ease;
}

.accept_btn {
    background: #C55A36;
    color: #fff;
    border: 1.5px solid #C55A36;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inactivbtn {
    background: #f5f5f5;
    color: #d4a999;
    border-color: #e8d4cc;
    cursor: default;
}

.inactivbtn2 {
    background: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
    cursor: default;
}

.activbtn {
    background: #C55A36;
    color: #fff;
    border-color: #C55A36;
    cursor: pointer;
}

.activbtn:hover {
    background: #ad4c2c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 90, 54, 0.2);
}

/* ── Hidden sections ─────────────────────────────────────────── */

#middle2 { display: none; }
#middle3 { display: none; }
#middle4 { display: none; }
#middle5 { display: none; }
#middle6 { display: none; }
#middle7 { display: none; }

#middle5bis {
    display: none;
}

/* ── Password strength ───────────────────────────────────────── */

#checkerstrength {
    margin-top: 8px;
    font-size: 12px;
}

/* ── Footer ──────────────────────────────────────────────────── */

#footer {
    width: calc(100% - 48px);
}

#footer p,
#footer a {
    color: #000;
}

.gotoresend {
    color: #C55A36;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gotoresend:hover {
    color: #ad4c2c;
}
/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 850px) {

    header {
        padding: 12px 16px;
    }

    .center_container {
        padding: 32px 16px;
    }

    section {
        width: 100%;
        padding: 28px 20px;
    }

    h2 {
        font-size: 20px;
    }

    .form_grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .login_icon_holder {
        width: 56px;
        height: 56px;
    }

    .login_icon_holder span {
        font-size: 26px;
    }

    .code-input input {
        width: 48px;
        height: 56px;
        font-size: 22px;
    }

    .line_flexer_btn {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .refused_btn,
    .accept_btn {
        width: 100%;
        text-align: center;
    }
}

@media screen and (min-width: 850px) and (max-width: 1300px) {

    section {
        padding: 32px 36px;
    }

    .primary_btn {
        margin-top: 20px;
    }
}