/* UltraJeux - CSS pour le systeme de connexion/inscription */
/* Style inspire de la page facturation (monpanier22.php) */
.login {
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --focus: #3b82f6;
    --primary: #005697;
    --shadow: 0 10px 30px rgba(2, 6, 23, .08);
    --radius: 14px;

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin: 30px 0;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .nav-container::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%) rotate(90deg);
        width: 25px;
        height: 0px;
        border: 0.5px solid #000000;
    }

    .nav-button {
        padding: 12px 24px;
        border: none;
        background: transparent;
        font-weight: 400;
        font-size: 24px;
        color: #707070;
        cursor: pointer;
        text-transform: capitalize;
        position: relative;
        flex: 1;
    }

    .nav-button:first-child {
        text-align: right;
    }

    .nav-button:last-child {
        text-align: left;
    }

    .nav-button.active {
        font-weight: 600;
        color: #000000;
    }

    .section {
        display: block;
    }

    .section.hidden {
        display: none;
    }

    .login-container {
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 28px;
        margin: 20px auto;
        width: 75%;
        max-width: 450px;
        position: relative;
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .form-title {
        font-weight: 400;
        font-size: 16px;
        color: #000000;
        margin-bottom: 30px;
    }

    .input-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 18px;
    }

    .password-container {
        position: relative;
    }

    .password-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        color: #666;
        padding: 0;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .password-toggle:hover {
        color: var(--primary);
    }

    .input-label {
        font-size: 14px;
        font-weight: 400;
        color: #0b1220;
        display: block;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .input {
        font-size: 14px;
        font-weight: 400;
        padding: 11px 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        outline: none;
        background: #fff;
        transition: .15s;
        box-sizing: border-box;
        width: 100%;
    }

    .input:focus {
        border-color: var(--focus);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
    }

    .input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    .signin-buttons-container {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-direction: row;
    }

    .signin-btn {
        background-color: #fafafa;
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid #dadce0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1d1d1d;
        font-weight: 600;
        transition: background-color 0.3s ease;
        font-size: 14px;
        gap: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.041);
        flex: 1;
        min-width: 200px;
        cursor: pointer;
    }

    .switch-btn {
        background-color: #fafafa;
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid #dadce0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1d1d1d;
        font-weight: 600;
        transition: background-color 0.3s ease;
        font-size: 14px;
        gap: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.041);
        flex: 1;
        margin: 20px;
        cursor: pointer;
        max-width: 250px;
    }

    .signin-btn:hover, .switch-btn:hover {
        background-color: #ffffff;
    }

    .signin-btn-apple {
        background-color: #000;
        color: #fff;
        border-color: #000;
    }

    .signin-btn-apple:hover {
        background-color: #333;
    }

    .submit-btn {
        background: linear-gradient(180deg, #1a7fd4 0%, var(--primary) 100%);
        border: 1px solid rgba(0, 86, 151, .25);
        border-radius: 12px;
        padding: 12px 24px;
        font-weight: 600;
        color: #ffffff;
        font-size: 14px;
        cursor: pointer;
        transition: .15s;
        width: 100%;
    }

    .submit-btn:hover {
        filter: brightness(.98);
    }

    .checkbox-group {
        display: flex;
        align-items: center;
        margin: 20px 0;
        gap: 10px;
    }

    .checkbox {
        min-width: 18px;
        height: 16px;
        background: #ffffff;
        border: 1px solid #dbdbdb;
        border-radius: 5px;
    }

    .checkbox-label {
        font-weight: 400;
        font-size: 14px;
        color: #000000;
    }

    .link {
        color: #4c7dfa;
        text-decoration: underline;
        font-weight: 400;
        font-size: 14px;
        transition: color 0.3s ease;
    }

    .link:hover {
        color: var(--primary);
    }

    .form-section {
        margin-bottom: 18px;
    }

    .section-title {
        font-weight: 400;
        font-size: 14px;
        color: #000000;
        margin-bottom: 20px;
    }

    .input-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
        margin-bottom: 0;
    }

    @media (max-width: 500px) {
        .input-row {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 648px) {
        .signin-buttons-container{
            flex-direction: column;
        }
    }

    .input-row .input-group {
        margin-bottom: 18px;
    }

    .select {
        padding: 11px 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        outline: none;
        background: #fff;
        font-size: 14px;
        font-weight: 400;
        color: var(--text);
        appearance: none;
        transition: .15s;
        box-sizing: border-box;
    }

    .select:focus {
        border-color: var(--focus);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
    }

    .radio-group {
        display: flex;
        gap: 10px;
        padding: 2px 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    .radio-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 400;
        color: var(--text);
        cursor: pointer;
        margin: 0;
    }
}

/* ============================================= */
/* CSS extrait de login.php - Pages d'erreur OAuth */
/* ============================================= */

/* Styles pour les pages d'erreur Google OAuth */
.google-oauth-error body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #f5f5f5;
}

.google-oauth-error .error-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.google-oauth-error h2 {
    color: #d32f2f;
    margin-top: 0;
}

.google-oauth-error ul {
    line-height: 1.8;
}

.google-oauth-error a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.google-oauth-error a:hover {
    background: #1565c0;
}

/* Styles pour les pages d'erreur Apple Sign In */
.apple-signin-error body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #f5f5f5;
}

.apple-signin-error .error-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.apple-signin-error h2 {
    color: #d32f2f;
    margin-top: 0;
}

.apple-signin-error ul {
    line-height: 1.8;
}

.apple-signin-error a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.apple-signin-error a:hover {
    background: #1565c0;
}

/* ============================================= */
/* CSS extrait de login.php - Page completer_profil */
/* ============================================= */

.completer-profil-page {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.completer-profil-page h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.completer-profil-page .input-group {
    margin-bottom: 20px;
}

.completer-profil-page .input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.completer-profil-page .input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.completer-profil-page .input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

.completer-profil-page .submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.completer-profil-page .submit-btn:hover {
    background: linear-gradient(180deg, #45a049 0%, #3d8b40 100%);
}

.completer-profil-page .info-box {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1976d2;
}

/* ============================================= */
/* CSS extrait de login.php - Page validation code */
/* ============================================= */

.code-validation-page .code-inputs-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.code-validation-page .code-input {
    width: 50px;
    height: 60px;
    font-size: 32px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.code-validation-page .code-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.code-validation-page .code-input:not(:placeholder-shown) {
    border-color: #10b981;
}

/* ============================================= */
/* CSS extrait de login.php - Page password reset */
/* ============================================= */

.password-strength {
    margin-top: 8px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-weak {
    width: 33%;
    background-color: #f44336;
}

.strength-medium {
    width: 66%;
    background-color: #ff9800;
}

.strength-strong {
    width: 100%;
    background-color: #4caf50;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.text-weak {
    color: #f44336;
}

.text-medium {
    color: #ff9800;
}

.text-strong {
    color: #4caf50;
}
