


   * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f5f5f7;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        .apple-login-container {
            background: #fff;
            padding: 48px 36px 40px;
            border-radius: 18px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.10);
            text-align: center;
            width: 360px;
        }

        .logo-wrapper {
            position: relative;
            width: 160px;
            height: 160px;
            margin: 0 auto 24px;
        }

        .logo-wrapper canvas {
            position: absolute;
            top: 0; left: 0;
        }

        .logo-wrapper img {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 52px;
            height: 52px;
            z-index: 2;
        }

        h1 {
            font-size: 22px;
            font-weight: 600;
            margin: 0 0 28px;
            color: #1d1d1f;
            letter-spacing: -0.3px;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            border: 1px solid #d2d2d7;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 18px;
        }

        .input-group input {
            width: 100%;
            padding: 14px 16px;
            border: none;
            border-bottom: 1px solid #d2d2d7;
            font-size: 15px;
            color: #1d1d1f;
            background: #fff;
            outline: none;
            transition: background 0.15s;
            -webkit-appearance: none;
        }

        .input-group input:last-child { border-bottom: none; }
        .input-group input::placeholder { color: #aeaeb2; }
        .input-group input:focus { background: #f0f6ff; z-index: 1; }

        .apple-button {
            width: 100%;
            padding: 14px;
            background-color: #0071e3;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .apple-button:hover  { background-color: #0060c7; }
        .apple-button:active { background-color: #004eaa; transform: scale(0.99); }

        .login-options {
            margin-top: 22px;
            font-size: 13.5px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .login-options a { color: #0071e3; text-decoration: none; }
        .login-options a:hover { text-decoration: underline; }
        
/* ... (conserve tout le CSS précédent) ... */

/* Styles pour le conteneur principal des pages d'authentification */
.main-container {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de s'enrouler sur les petits écrans */
    justify-content: center;
    align-items: flex-start; /* Aligne en haut */
    min-height: 100vh;
    background-color: #f5f5f7; /* Couleur de fond Apple */
    font-family: 'SF Pro Display', sans-serif;
    color: #1d1d1f; /* Texte sombre */
    padding: 20px;
    box-sizing: border-box;
}

/* Mockup d'iPhone (gauche) */
.iphone-mockup {
    position: relative;
    width: 300px; /* Largeur du mockup */
    height: 600px; /* Hauteur du mockup */
    margin: 20px;
    display: none; /* Cache par défaut, on l'active pour les grands écrans */
}

/* Cadre de l'iPhone */
.iphone-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* Au-dessus de l'écran */
    object-fit: contain; /* Assure que l'image du cadre s'adapte sans déformation */
}

/* Écran de l'iPhone à l'intérieur du cadre */
.iphone-screen {
    position: absolute;
    top: 25px; /* Ajuste selon ton image de cadre pour que l'écran soit bien positionné */
    left: 17px; /* Ajuste selon ton image de cadre */
    width: calc(100% - 34px); /* Ajuste la largeur */
    height: calc(100% - 50px); /* Ajuste la hauteur */
    background-size: cover;
    background-position: center;
    border-radius: 40px; /* Rayon de bordure pour l'écran */
    overflow: hidden;
}

/* Formulaire de la carte (droite) */
.form-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
}

.form-apple-logo {
    height: 40px;
    margin-bottom: 25px;
}

.form-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.form-card p {
    font-size: 17px;
    line-height: 1.5;
    color: #6e6e73;
    margin-bottom: 25px;
}

.form-card .small-text {
    font-size: 14px;
    color: #86868b;
    margin-top: -15px;
    margin-bottom: 25px;
}

.form-card input[type="password"],
.form-card input[type="email"] {
    width: calc(100% - 20px);
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 17px;
    box-sizing: border-box;
    -webkit-appearance: none; /* Pour un style natif sur iOS */
    -moz-appearance: none;
    appearance: none;
}

.form-card input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}

.apple-button {
    background-color: #007aff;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.apple-button:hover {
    background-color: #0060d4;
}

.form-card .disclaimer {
    font-size: 13px;
    color: #86868b;
    margin-top: 30px;
}

.form-card .disclaimer a {
    color: #007aff;
    text-decoration: none;
}
.form-card .disclaimer a:hover {
    text-decoration: underline;
}

/* Styles pour la page Apple ID & Password */
.apple-id-page {
    background-color: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligne en haut */
    min-height: 100vh;
    padding: 50px 20px;
    box-sizing: border-box;
    font-family: 'SF Pro Display', sans-serif;
    color: #1d1d1f;
}

.apple-login-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.login-apple-logo {
    height: 45px;
    margin-bottom: 30px;
}

.apple-login-container h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.login-options {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-options a {
    color: #007aff;
    text-decoration: none;
    font-size: 15px;
}
.login-options a:hover {
    text-decoration: underline;
}

/* Styles pour la page de simulation de réinitialisation */
.processing-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: #f5f5f7;
    font-family: 'SF Pro Display', sans-serif;
    color: #1d1d1f;
}

.processing-apple-logo {
    height: 60px;
    margin-bottom: 40px;
    animation: pulse 1.5s infinite alternate; /* Animation subtile */
}

@keyframes pulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.05); opacity: 0.9; }
}


.processing-container h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 20px;
}

.processing-container p {
    font-size: 20px;
    color: #6e6e73;
    margin-bottom: 30px;
}

.processing-container .processing-message {
    font-size: 16px;
    margin-top: 40px;
    color: #86868b;
}


/* Loader CSS - style de spinner Apple */
.loader {
    border: 4px solid rgba(0, 122, 255, 0.2);
    border-top: 4px solid #007aff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Media Queries pour l'adaptation */
@media (min-width: 992px) { /* Affiche le mockup d'iPhone sur les grands écrans */
    .iphone-mockup {
        display: block;
    }
    .main-container {
        align-items: center; /* Centre verticalement sur les grands écrans */
    }
}

@media (max-width: 768px) {
    .form-card, .apple-login-container {
        padding: 25px 20px;
        margin: 10px;
    }
    .form-card h2 {
        font-size: 24px;
    }
    .form-card p {
        font-size: 15px;
    }
    .apple-login-container h1 {
        font-size: 28px;
    }
}
/* Harmonisation PIN avec Apple login */
.pin-group {
    margin-bottom: 20px;
}

.pin-group input {
    text-align: center;
    font-size: 20px;
    letter-spacing: 8px; /* effet iOS PIN */
    padding: 16px;
}

/* Focus identique à l'autre page */
.pin-group input:focus {
    background: #f0f6ff;
}

/* Optionnel : look “bulles PIN” */
.pin-group input::placeholder {
    letter-spacing: normal;
    font-size: 15px;
}