* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(145deg, #f0f4fa 0%, #e6ECf4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-direction: column;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #E7325C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 8px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    height: auto;
    min-height: 60px;
}

.header img {
    max-height: 70px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: bicubic;
}

/* CARTE PRINCIPALE*/
.card {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 50px -15px rgba(231, 50, 92, 0.25), 0 0 0 1px rgba(231, 50, 92, 0.1) inset;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    margin: 85px auto 20px;
}

/* HEADER DE LA CARTE */
.card-header {
    background: linear-gradient(165deg, #E7325C 0%, #c41e44 100%);
    padding: 15px 25px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Formes décoratives circulaires */
.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.shape.shape1 {
    width: 150px;
    height: 150px;
    top: -60px;
    right: -40px;
}

.shape.shape2 {
    width: 100px;
    height: 100px;
    bottom: -50px;
    left: -40px;
}

.shape.shape3 {
    width: 60px;
    height: 60px;
    top: -5px;
    left: -15px;
}

.card-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 3px;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.welcome_subtitle {
    font-size: 12px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.content {
    padding: 25px 30px 20px;
}

/* MESSAGES (SUCCÈS / ERREUR) */
.message {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message::before {
    content: "";
    width: 3px;
    height: 18px;
    border-radius: 3px;
}

.message.success {
    background: #f0fdf4;
    border: 1px solid #85efac;
    color: #166534;
}

.message.success::before {
    background: #22c55e;
}

.message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.message.error::before {
    background: #E7325C;
}

/* FORMULAIRE */
.form_group {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.form_group:focus-within label {
    color: #E7325C;
}

.form_group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.25s;
    margin-top: 5px;
}

.form_group input:focus {
    outline: none;
    border-color: #E7325C;
    background: white;
    box-shadow: 0 5px 15px -8px rgba(231, 50, 92, 0.4);
}

.form_group input::placeholder {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 300;
}
.tooken-container {
    display:flex;
    gap:5px;
    align-items:center;
}
.form_group input.token-box {
    width: 35px;
    height: 35px;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding:5px;
}

/* BOUTON */
.btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #E7325C, #c41e44);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 25px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px -8px rgba(231, 50, 92, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #c41e44, #a01838);
    transform: translateY(1px);
    box-shadow: 0 5px 15px -8px rgba(231, 50, 92, 0.5);
}

/* FOOTER */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    color: #666;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    z-index: 1000;
}

/* Ajustement pour très petits écrans */
@media (max-width: 480px) {
    .header {
        min-height: 50px;
        padding: 5px;
    }

    .header img {
        max-height: 50px;
    }

    .card {
        max-width: 420px;
        margin: 75px auto 15px;
    }

    .card-header {
        padding: 12px 20px;
    }

    .card-header h1 {
        font-size: 20px;
    }

    .welcome_subtitle {
        font-size: 11px;
    }

    .content {
        padding: 20px 25px 15px;
    }

    .form_group {
        margin-bottom: 12px;
    }

    .form_group input {
        padding: 10px 14px;
    }

    .btn {
        padding: 12px 18px;
        margin-top: 20px;
    }

    .site-footer {
        padding: 8px;
        font-size: 10px;
    }
}
