@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800;900&display=swap');

/* RESET + FORCE BLANC */
*{box-sizing:border-box}
html,body{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    background:#ffffff !important;
    font-family:"Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow:hidden;
    color:#0b0f17;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.login-page{
    height:100svh;
    min-height:100svh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:clamp(16px, 4vw, 28px);
    background:#ffffff;
    position:relative;
    overflow:hidden;
}
.login-page::before{
    content:"";
    position:absolute;
    top:-160px;
    left:-35%;
    width:170%;
    height:360px;
    background:
            radial-gradient(ellipse at 50% 50%,
            rgba(16, 77, 52, .14) 0%,
            rgba(16, 77, 52, .08) 38%,
            rgba(255,255,255,0) 72%);
    z-index:0;
}

.login-page::after{
    content:"";
    position:absolute;
    bottom:-220px;
    right:-45%;
    width:190%;
    height:460px;
    background:
            radial-gradient(ellipse at 50% 50%,
            rgba(16, 77, 52, .10) 0%,
            rgba(16, 77, 52, .06) 36%,
            rgba(255,255,255,0) 72%);
    z-index:0;
}

/* CARD */
.login-card{
    position:relative;
    z-index:1;
    width:100%;
    max-width:420px;
    text-align:center;
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:clamp(22px, 5vw, 32px) clamp(18px, 4.2vw, 26px);
    border-radius:22px;
    background:rgba(255,255,255,.86);
    backdrop-filter: blur(8px);
    box-shadow:
            0 16px 50px rgba(11, 15, 23, .08),
            0 2px 10px rgba(11, 15, 23, .05);
    animation: fadeUp .35s ease;
}

/* LOGO */
.logo img{
    width:clamp(150px, 38vw, 210px);
    height:auto;
    display:block;
    margin:0 auto 2px;
}
.logo span{
    font-weight:900;
    letter-spacing:.06em;
    color:#0f3d2e;
}

/* TITRES */
h1{
    margin:4px 0 0;
    font-size:clamp(20px, 5.2vw, 24px);
    line-height:1.15;
    font-weight:900;
    letter-spacing:-.02em;
    color:#0b0f17;
}
.subtitle{
    margin:0 0 8px;
    font-size:clamp(13px, 3.6vw, 14px);
    line-height:1.35;
    color:rgba(11, 15, 23, .58);
    font-weight:600;
}

/* FORM */
form{
    display:flex;
    flex-direction:column;
    gap:12px;
}

/* INPUT GROUP */
.input-group{
    position:relative;
}
.input-group i{
    position:absolute;
    top:50%;
    left:14px;
    transform:translateY(-50%);
    color:rgba(11,15,23,.35);
    font-size:16px;
    pointer-events:none;
}
.input-group .toggle{
    left:auto;
    right:14px;
    cursor:pointer;
    pointer-events:auto;
    color:rgba(11,15,23,.40);
}

/* INPUTS (email/password) */
input{
    width:100%;
    padding:14px 44px;
    border-radius:16px;
    border:1px solid rgba(11,15,23,.10);
    background:rgba(245,247,250,.75);
    font-size:15px;
    font-weight:650;
    outline:none;
    color:#0b0f17c4;
}
input::placeholder{
    color:rgba(11,15,23,.35);
    font-weight:600;
}
input:focus{
    background:#ffffff;
    border-color:rgba(16, 77, 52, .45);
    box-shadow:0 0 0 4px rgba(16, 77, 52, .12);
}

/* FORGOT */
.forgot{
    text-align:right;
    font-size:13px;
}
.forgot a{
    color:#0f3d2e;
    text-decoration:none;
    font-weight:800;
}

/* BUTTON PRIMARY */
.btn-primary{
    margin-top:6px;
    height:52px;
    padding:0 16px;
    border-radius:16px;
    border:none;
    font-size:16px;
    font-weight:900;
    letter-spacing:.01em;
    color:#ffffff;
    background:linear-gradient(135deg,#0f3d2e,#1b6a4b);
    cursor:pointer;
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
    box-shadow:
            0 10px 24px rgba(16, 77, 52, .18),
            0 2px 6px rgba(11, 15, 23, .08);
}
.btn-primary:hover{
    filter:brightness(1.03);
}
.btn-primary:active{
    transform:scale(0.98);
    box-shadow:
            0 14px 30px rgba(16, 77, 52, .22),
            0 2px 8px rgba(11, 15, 23, .10);
}
.btn-primary:disabled{
    opacity:.55;
    cursor:not-allowed;
    box-shadow:none;
}

/* DIVIDER */
.divider{
    display:flex;
    align-items:center;
    gap:12px;
    margin:12px 0 6px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    color:rgba(11,15,23,.35);
}
.divider::before,
.divider::after{
    content:"";
    flex:1;
    height:1px;
    background:rgba(11,15,23,.10);
}

/* BUTTON SECONDARY */
.btn-secondary{
    border-radius: 16px;
    border: 0;
    background: linear-gradient(135deg,#0f3d2e52,#1b6a4b8f);
    font-size: 15px;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: #fff;
    text-shadow: 0 0 10px #1b6a4b75;
}
.btn-secondary i{
    color: rgb(255, 255, 255);
}

.btn-secondary:active{
    transform:scale(0.985);
}

/* FOOTER */
.footer{
    font-size:13px;
    color:rgba(11,15,23,.55);
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:6px;
    text-align:center;
    align-items:center;
}
.footer a{
    color:#0f3d2e;
    font-weight:900;
    text-decoration:none;
}

/* CODE INPUTS (5 cases) — ultra lisible / responsive */
.code-inputs{
    display:flex;
    justify-content:center;
    gap:clamp(8px, 2.6vw, 12px);
    margin:18px 0 10px;
}
.code-input{
    width:clamp(44px, 14vw, 48px);
    height:clamp(56px, 16vw, 70px);
    padding:0 !important;
    text-align:center;
    font-size:clamp(20px, 6vw, 26px);
    font-weight:900;
    letter-spacing:.02em;
    border-radius:16px;
    border:1px solid rgba(11,15,23,.12);
    background:#ffffff;
    color:#0b0f17;
    outline:none;
    box-shadow:0 8px 18px rgba(11,15,23,.05);
}
.code-input:focus{
    border-color:rgba(16, 77, 52, .55);
    box-shadow:
            0 0 0 4px rgba(16, 77, 52, .12),
            0 10px 22px rgba(11,15,23,.06);
}
.code-input::placeholder{color:transparent}

/* OPTIONNEL — header (si utilisé) */
.login-header{
    text-align:center;
    margin-bottom:18px;
}
.login-header .logo{
    font-size:38px;
    font-weight:900;
    letter-spacing:2px;
}
.login-header .tagline{
    font-size:12px;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;
    color:rgba(11,15,23,.45);
    margin-top:6px;
}
.rgpd{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 10px 0 4px;
    justify-content: space-between;
}
.rgpd span {
    flex: 1;
}
.rgpd input{
    margin-top:3px;
    accent-color:#0f3d2e;
    width: inherit;
}

.rgpd a{
    color:#0f3d2e;
    font-weight:600;
    text-decoration:none;
}

.rgpd a:hover{
    text-decoration:underline;
}
input[type="date"]{
    padding-right:0.8em;
}
.auth-legal {
    font-size: 14px;
    color: rgba(0,0,0,.6);
    text-align: center;
    margin-top: 12px;
}

.auth-legal a {
    color: rgba(0,0,0,.8);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 800;
}

@keyframes fadeUp{
    from{opacity:0; transform:translateY(12px)}
    to{opacity:1; transform:translateY(0)}
}

/* Très petits écrans */
@media (max-width: 340px){
    .login-card{ padding:18px 14px; border-radius:18px; }
    input{ padding:13px 42px; border-radius:14px; }
    .btn-primary,.btn-secondary{ height:50px; border-radius:14px; }
}
/* =========================
   ERROR VIEW
========================= */

.error-view {
    text-align: center;
    padding: 10px 0 20px;
}

.error-icon {
    font-size: 42px;
    margin-bottom: 16px;
    color: #ffcc00;
}

.error-view h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.error-view .subtitle {
    font-size: 13px;
    color: #6b7f76;
    margin-bottom: 20px;
}
