/* ----- RESET SIMPLE ----- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    color: #111;
}

a {
    color: #0095f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ----- CONTENEUR GLOBAL ----- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ----- CARTE DE LOGIN ----- */
.login-card {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 48px 32px;
    text-align: center;
}
.logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logo svg {
    width: 100%;
    height: 100%;
}


/* TITRES */
.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
}

.login-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

/* FORM */
.form-group {
    text-align: left;
    margin-bottom: 18px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #c7c7c7;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8f8f8;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #0095f6;
    box-shadow: 0 0 0 1px rgba(0, 149, 246, 0.1);
    background-color: #fff;
}

/* Petit encadré “numéro de tel” sur la 2e page */
.phone-box {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    font-size: 15px;
    margin-bottom: 26px;
}

.phone-box span:first-child {
    font-weight: 600;
    margin-right: 8px;
}

.phone-box a {
    font-size: 13px;
}

/* Lien sous le champ (use phone number / forgot password) */
.alt-login {
    font-size: 14px;
    margin: 8px 0 24px;
}

/* Bouton principal */
.login-btn {
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #00a7ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 40px;
    border-radius: 999px;
    margin-top: 4px;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s;
}

.login-btn:hover {
    background-color: #0095f6;
    box-shadow: 0 8px 18px rgba(0, 149, 246, 0.4);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Forgot password centré */
.forgot-link {
    font-size: 14px;
    margin: 16px 0 18px;
}

/* ----- LIGNE “NEW TO…” ----- */
.bottom-auth {
    margin-top: 18px;
    font-size: 15px;
    text-align: center;
}

.bottom-auth a {
    font-weight: 600;
}

/* ----- FOOTER ----- */
footer {
    margin-top: 50px;
    width: 100%;
    border-top: 1px solid #e5e5e5;
    padding: 24px 10%;
    font-size: 13px;
    color: #555;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.footer-section-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-link {
    display: block;
    margin-bottom: 4px;
}

.footer-bottom {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 24px;
        margin: 0 12px;
    }

    footer {
        padding: 20px 16px;
    }
}

/* Ligne pour le mode téléphone : select pays + champ numéro */
.phone-row {
    display: flex;
    gap: 10px;
}

.phone-row select {
    flex: 0 0 40%;
    padding: 11px 10px;
    border-radius: 8px;
    border: 1px solid #c7c7c7;
    background-color: #f8f8f8;
    font-size: 14px;
}

.phone-row input {
    flex: 1;
}


.loader {
    margin: 20px auto;
    border: 4px solid #eee;
    border-top: 4px solid #00a7ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

a,
a:visited {
    color: #0095f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}