diff --git a/global.css b/global.css index 67bc8ba..3807b32 100644 --- a/global.css +++ b/global.css @@ -512,3 +512,66 @@ p { .btn-icon-action.delete:hover { background: #fef2f2; /* Fond rouge très clair au survol */ } + +/* === 13. PAGE DE CONNEXION (LOGIN) === */ +.pf-login-wrapper { + display: flex; + justify-content: center; + align-items: center; + min-height: calc(100vh - 200px); + padding: 20px; +} + +.pf-login-card { + width: 100%; + max-width: 400px; + padding: 32px; + background: white; + border-radius: 16px; + box-shadow: var(--shadow-lg); + border: 1px solid var(--border-light); +} + +.pf-login-header { + text-align: center; + margin-bottom: 24px; +} + +.pf-login-header .pf-login-icon { + width: 60px; /* Tu peux ajuster cette valeur selon le rendu voulu */ + height: auto; + margin-bottom: 15px; + border-radius: 12px; /* Optionnel : ajoute un léger arrondi si ton favicon est carré */ +} + +.pf-login-header h1 { + font-size: 1.8rem; + margin: 0; + color: var(--text-main); +} + +.pf-login-header p { + color: var(--text-muted); + margin-top: 8px; + font-size: 0.95rem; +} + +.pf-login-error { + background: #fef2f2; + color: #ef4444; + padding: 12px; + border-radius: 8px; + border: 1px solid #fca5a5; + margin-bottom: 20px; + font-size: 0.9rem; + text-align: center; + font-weight: 600; +} + +.pf-btn-block { + width: 100%; + justify-content: center; + margin-top: 10px; + padding: 14px; + font-size: 1.05rem; +} diff --git a/includes/lang/ca.php b/includes/lang/ca.php index 11904cc..6046752 100644 --- a/includes/lang/ca.php +++ b/includes/lang/ca.php @@ -13,7 +13,7 @@ return [ 'tests_copy_report' => 'Copiar l\'informe', 'tests_waiting' => 'Esperant l\'inici...', 'tests_report_copied' => 'Informe copiat al porta-retalls!', - + 'tests_live_preview' => 'Previsualització en viu', // ========================================== // GLOBAL & NAVIGATION // ========================================== @@ -70,6 +70,7 @@ return [ 'btn_logout' => 'Tancar sessió', 'error_missing_fields' => 'Camps obligatoris.', 'error_invalid_credentials' => 'Identificadors incorrectes.', + 'login_subtitle' => 'Si us plau, identifiqueu-vos per continuar', // ========================================== // ACCUEIL / INDEX @@ -129,6 +130,11 @@ return [ 'fc_menu_carole' => 'Permisos Carole', 'fc_clear' => 'Esborrar', 'fc_menu_kids_leaves' => 'Permisos nens', + 'fc_err_save_snap' => 'Error en desar el correctiu.', + 'fc_err_fetch_gov' => 'Error en la connexió amb l’API governamental.', + 'fc_err_no_data_gov' => 'No s’han trobat dades a l’API del govern per a aquest any.', + 'fc_err_action' => 'Error en l’acció: ', + 'leg_presence_pep' => 'Presència Pep', 'leg_school_holidays' => 'Vacances Escolars', 'leg_public_holiday' => 'Festiu', diff --git a/includes/lang/fr.php b/includes/lang/fr.php index bad4737..13fa386 100644 --- a/includes/lang/fr.php +++ b/includes/lang/fr.php @@ -13,6 +13,7 @@ return [ 'tests_copy_report' => 'Copier le rapport', 'tests_waiting' => 'En attente du lancement...', 'tests_report_copied' => 'Rapport copié dans le presse-papier !', + 'tests_live_preview' => 'Aperçu en direct', // ========================================== @@ -72,6 +73,7 @@ return [ 'btn_logout' => 'Déconnexion', 'error_missing_fields' => 'Champs obligatoires.', 'error_invalid_credentials' => 'Identifiants incorrects.', + 'login_subtitle' => 'Veuillez vous identifier pour continuer', // ========================================== // ACCUEIL / INDEX @@ -131,6 +133,11 @@ return [ 'fc_menu_carole' => 'Congés Carole', 'fc_clear' => 'Effacer', 'fc_menu_kids_leaves' => 'Congés Enfants', + 'fc_err_save_snap' => 'Erreur lors de la sauvegarde du correctif.', + 'fc_err_fetch_gov' => 'Erreur lors de la connexion à l’API gouvernementale.', + 'fc_err_no_data_gov' => 'Aucune donnée trouvée sur l’API du gouvernement pour cette année.', + 'fc_err_action' => 'Erreur lors de l’action : ', + 'leg_presence_pep' => 'Présence Pep', 'leg_school_holidays' => 'Vacances Scolaires', 'leg_public_holiday' => 'Férié', diff --git a/login.php b/login.php index aef5853..42235c6 100644 --- a/login.php +++ b/login.php @@ -42,26 +42,42 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { require __DIR__ . '/header.php'; ?> -
= tr('login_subtitle') ?>
+