.register-page {
    min-height: 90vh;
    /* background: #f5f7fa; */
    padding: 50px 20px;
}

.register-container {
    max-width: 850px;
    margin: auto;
}

.register-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}


/* HEADER */

.register-header {
    text-align: center;
    margin-bottom: 35px;
}

.register-header h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.register-header p {
    color: #777;
}


/* STEPS */

.steps {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;

    top: 18px;
    left: 60%;
    width: 80%;

    height: 2px;

    background: #ddd;

    z-index: 0;
}

.step-number {
    position: relative;
    z-index: 1;

    width: 38px;
    height: 38px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ddd;

    color: #666;

    font-weight: bold;
}

.step.active .step-number {
    background: #f39b00;
    color: white;
}

.step-label {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}


/* FORM */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-title {
    margin-bottom: 25px;
}

.form-title h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.form-title p {
    color: #777;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #ddd;

    border-radius: 10px;

    box-sizing: border-box;
}

.form-control:focus {
    border-color: #f39b00;

    outline: none;

    box-shadow: 0 0 0 3px rgba(243,155,0,.12);
}


/* BUTTONS */

.form-actions {
    display: flex;
    justify-content: space-between;

    margin-top: 30px;
}

.btn {
    border: none;
    border-radius: 10px;

    padding: 13px 25px;

    font-weight: 600;

    cursor: pointer;

    text-decoration: none;
}

.btn-primary {
    background: #f39b00;
    color: white;
}

.btn-secondary {
    background: #eee;
    color: #444;
}

.btn-success {
    background: #28a745;
    color: white;
}


/* ERRORS */

.errorlist {
    list-style: none;
    padding: 0;
    margin: 5px 0;

    color: #dc3545;

    font-size: 13px;
}


/* TRIAL */

.trial-box {
    background: #f0fff5;

    border: 1px solid #b7e4c7;

    border-radius: 15px;

    padding: 25px;

    text-align: center;

    margin-bottom: 25px;
}

.trial-box .icon {
    font-size: 40px;
}

.trial-box h3 {
    color: #198754;
    margin: 10px 0;
}

.trial-box p {
    color: #555;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,.12);
}



/* spinner  */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #eee;
    border-top-color: #f39b00;
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}

.loading-text {
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}


/* MOBILE */

@media(max-width: 600px) {

    .register-page {
        padding: 25px 12px;
    }

    .register-card {
        padding: 25px 18px;
    }

    .register-header h1 {
        font-size: 24px;
    }

    .step-label {
        font-size: 11px;
    }

    .step:not(:last-child)::after {
        width: 70%;
    }

    /* Boutons empilés en mobile */
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
        padding: 14px 25px;
    }

    /* Le span vide de l'étape 1 sert juste à pousser le bouton à droite en desktop */
    .form-actions span {
        display: none;
    }
}