521 lines
9.1 KiB
CSS
Executable File
521 lines
9.1 KiB
CSS
Executable File
/* ============================================
|
|
VARIABLES ET COULEURS - DARK MODE
|
|
============================================ */
|
|
|
|
:root {
|
|
--bg-primary: #121212;
|
|
--bg-secondary: #1e1e1e;
|
|
--bg-tertiary: #2a2a2a;
|
|
--text-primary: #e0e0e0;
|
|
--text-secondary: #b0b0b0;
|
|
--accent-color: #6200ee;
|
|
--accent-hover: #7c3aed;
|
|
--border-color: #333333;
|
|
--success-color: #4caf50;
|
|
--error-color: #f44336;
|
|
--warning-color: #ff9800;
|
|
}
|
|
|
|
/* ============================================
|
|
RESET ET STYLES GLOBAUX
|
|
============================================ */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
min-height: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
|
|
Arial, sans-serif;
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
font-size: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
body > .main-content {
|
|
flex: 1 0 auto;
|
|
}
|
|
|
|
main {
|
|
flex: 1 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ============================================
|
|
HEADER / NAVIGATION
|
|
============================================ */
|
|
|
|
.header {
|
|
background-color: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding: 10px 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.header .container {
|
|
position: relative;
|
|
min-height: 50px;
|
|
width: 100%;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.logo {
|
|
position: absolute;
|
|
left: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.site-title {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
letter-spacing: 0.5px;
|
|
text-align: center;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.user-info {
|
|
position: absolute;
|
|
right: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
text-align: right;
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
line-height: 1.3;
|
|
white-space: nowrap;
|
|
margin-right: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.user-info span {
|
|
display: block;
|
|
}
|
|
|
|
.user-info .info-ip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.info-date {
|
|
display: inline-block;
|
|
}
|
|
|
|
.logout-button {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--accent-color);
|
|
background: var(--accent-color);
|
|
color: #ffffff;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.logout-button:hover {
|
|
background: var(--accent-hover);
|
|
border-color: var(--accent-hover);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.logo-img {
|
|
height: 50px;
|
|
width: auto;
|
|
display: block;
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
.site-title {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
letter-spacing: 0.5px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ============================================
|
|
MAIN CONTENT ET CONTAINER DE CONNEXION
|
|
============================================ */
|
|
|
|
.main-content {
|
|
flex: 1 0 auto;
|
|
min-height: 0;
|
|
padding: 40px 20px 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
width: 100%;
|
|
}
|
|
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 450px;
|
|
}
|
|
|
|
.login-box {
|
|
background-color: var(--bg-secondary);
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
|
animation: slideUp 0.5s ease;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-subtitle {
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
font-size: 14px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
/* ============================================
|
|
FORMULAIRE
|
|
============================================ */
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-label {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.form-input {
|
|
background-color: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
background-color: rgba(98, 0, 238, 0.05);
|
|
box-shadow: 0 0 0 3px rgba(98, 0, 238, 0.1);
|
|
}
|
|
|
|
.form-input::placeholder {
|
|
color: var(--text-secondary);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ============================================
|
|
CHECKBOX
|
|
============================================ */
|
|
|
|
.form-group.checkbox {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.form-checkbox {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: var(--accent-color);
|
|
}
|
|
|
|
.form-checkbox-label {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
cursor: pointer;
|
|
text-transform: none;
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
/* ============================================
|
|
BOUTON SUBMIT
|
|
============================================ */
|
|
|
|
.btn-submit {
|
|
background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
|
|
color: #ffffff;
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-top: 10px;
|
|
box-shadow: 0 4px 15px rgba(98, 0, 238, 0.4);
|
|
}
|
|
|
|
.btn-submit:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(98, 0, 238, 0.6);
|
|
}
|
|
|
|
.btn-submit:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-submit:disabled {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* ============================================
|
|
PIED DE FORMULAIRE
|
|
============================================ */
|
|
|
|
.login-footer {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.alert {
|
|
border-radius: 10px;
|
|
padding: 16px 18px;
|
|
margin-bottom: 20px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: rgba(244, 67, 54, 0.12);
|
|
border: 1px solid rgba(244, 67, 54, 0.25);
|
|
color: #ffb3b0;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: rgba(76, 175, 80, 0.12);
|
|
border: 1px solid rgba(76, 175, 80, 0.25);
|
|
color: #c8facc;
|
|
}
|
|
|
|
.forgot-password,
|
|
.signup-link {
|
|
color: var(--accent-color);
|
|
text-decoration: none;
|
|
transition: color 0.3s ease;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.forgot-password:hover,
|
|
.signup-link:hover {
|
|
color: var(--accent-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.separator {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ============================================
|
|
FOOTER
|
|
============================================ */
|
|
|
|
.footer {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 20px;
|
|
background-color: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-color);
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
width: 100%;
|
|
}
|
|
|
|
/* On donne une largeur fixe aux conteneurs latéraux pour forcer le centrage */
|
|
#market-clocks,
|
|
.logout-container {
|
|
flex: 0 0 200px; /* Largeur fixe de 200px pour les deux côtés */
|
|
}
|
|
|
|
#market-clocks {
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-align: left;
|
|
}
|
|
|
|
.footer p {
|
|
flex: 1; /* Le texte prend tout l'espace restant */
|
|
text-align: center; /* Centre le texte dans cet espace */
|
|
}
|
|
|
|
.footer-logout {
|
|
display: block;
|
|
text-align: right; /* Aligne le bouton à droite dans son bloc */
|
|
}
|
|
|
|
/* ============================================
|
|
RESPONSIVE DESIGN
|
|
============================================ */
|
|
|
|
@media (max-width: 768px) {
|
|
.header .container {
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.navbar {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.nav-menu {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.logo-section {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.site-title {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.login-box {
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.footer-content {
|
|
grid-template-columns: 1fr;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer-section h3 {
|
|
margin-top: 15px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
body {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 20px 15px;
|
|
}
|
|
|
|
.login-container {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.login-box {
|
|
padding: 25px 15px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.nav-link {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-input {
|
|
padding: 10px 12px;
|
|
font-size: 16px; /* Évite le zoom sur iOS */
|
|
}
|
|
|
|
.btn-submit {
|
|
padding: 11px 20px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.logo {
|
|
height: 40px;
|
|
}
|
|
|
|
.site-title {
|
|
font-size: 20px;
|
|
}
|
|
}
|