* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

form {
    background: #ffffff;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

form h2 {
    color: #4f46e5;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

/* Champs */
.field {
    position: relative;
    margin-bottom: 28px;
}

.field input {
    width: 100%;
    padding: 14px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    background: transparent;
    transition: 0.3s ease;
}

/* Label flottant */
.field label {
    position: absolute;
    top: 50%;
    left: 12px;
    background: white;
    padding: 0 6px;
    color: #64748b;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.3s ease;
}

/* Animation */
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #f97316;
}

/* Bordure active */
.field input:focus {
    border-color: #f97316;
    box-shadow: 0 0 5px rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

/* Bouton */
button {
    width: 100%;
    padding: 14px;
    background: #f97316;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: bold;
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f97316;
    margin-right: 8px;
    margin-bottom: 20px;
}

input[type="checkbox"] + label {
    cursor: pointer;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    vertical-align: middle;
    user-select: none;
}

input[type="checkbox"]:hover + label {
    color: #f97316;
}

button:hover {
    background: #ffffff;
    color: #f97316;
    border: 2px solid #f97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Texte */
p {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #334155;
}

a {
    color: #f97316;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #ea580c;
}

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
    form {
        padding: 25px;
        max-width: 100%;
        width: 90%;
    }

    .field {
        margin-bottom: 24px;
    }

    .field input {
        padding: 12px 8px;
        font-size: 15px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }

    p {
        font-size: 13px;
        margin-top: 15px;
    }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    form {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        border-radius: 6px;
    }

    .field {
        margin-bottom: 20px;
    }

    .field input {
        padding: 11px 8px;
        font-size: 14px;
        border-radius: 5px;
    }

    .field label {
        font-size: 13px;
        left: 10px;
    }

    .field input:focus + label,
    .field input:not(:placeholder-shown) + label {
        font-size: 11px;
        top: -6px;
    }

    button {
        padding: 11px;
        font-size: 14px;
        border-radius: 5px;
    }

    p {
        font-size: 12px;
        margin-top: 14px;
    }

    a {
        font-size: 12px;
    }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    form {
        padding: 15px;
    }

    .field {
        margin-bottom: 18px;
    }

    .field input {
        padding: 10px 6px;
        font-size: 13px;
    }

    .field label {
        font-size: 12px;
    }

    button {
        padding: 10px;
        font-size: 13px;
    }

    p {
        font-size: 11px;
        margin-top: 12px;
    }
}

/* Grand écran (1024px et plus) */
@media (min-width: 1024px) {
    form {
        padding: 40px;
        max-width: 400px;
    }

    .field {
        margin-bottom: 32px;
    }

    .field input {
        padding: 15px 12px;
        font-size: 17px;
    }

    .field label {
        font-size: 15px;
    }

    button {
        padding: 15px;
        font-size: 17px;
    }

    p {
        font-size: 15px;
        margin-top: 20px;
    }
}
