/* Styles pour la Page Login Web Native */
#login-page {
    background-color: #EEFBFF;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(91, 88, 235, 0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-header {
    text-align: center;
}

.login-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.login-header h2 {
    color: #5B58EB;
    font-size: 24px;
    font-weight: bold;
}

.login-header p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Boutons de connexion sociale */
.auth-providers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-auth:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-facebook {
    background: #1877f2;
    color: #ffffff;
    border: none;
}

.facebook-mark {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

.btn-guest {
    background: #f0f4f8;
    color: #333;
    border: none;
}

/* Séparateur */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 10px;
}

/* Formulaire */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.input-group label {
    font-size: 13px;
    font-weight: bold;
    color: #444;
}

.input-group input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #5B58EB;
}

.btn-submit-auth {
    background: linear-gradient(135deg, #5B58EB 0%, #BB63FF 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.auth-error {
    color: #e53e3e;
    font-size: 13px;
    text-align: center;
}

.auth-toggle {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.auth-toggle button {
    background: none;
    border: none;
    color: #5B58EB;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    text-decoration: underline;
}

.header-right-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.login-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

.login-action-btn .account-icon {
    font-size: 18px;
    line-height: 1;
}

/* État de chargement des boutons de connexion */
.btn-auth.is-loading,
.btn-submit-auth.is-loading {
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}

.btn-auth:disabled:hover {
    background: inherit;
    transform: none;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(128, 128, 128, 0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}