html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(120deg, #eef1f7 0%, #f7f9fc 100%);
    display: flex;
    flex-direction: column;
}

/* Centre parfaitement */
.login-wrapper {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem 1rem;
}

/* Card modernisée */
.login-card {
    width: 100%;
    max-width: 410px;
    background: #fff;
    border-radius: 22px;
    border: none;
    box-shadow: 0 8px 32px rgba(74,108,247,0.13), 0 2px 8px rgba(60,80,160,0.08);
    padding: 2.1rem 2rem 1.4rem 2rem;
    animation: fadeUp 0.9s cubic-bezier(.33,1.02,.46,.98) both;
    position: relative;
    z-index: 1;
}

/* Anim fadeUp */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}

/* Titre */
.login-card h2 {
    font-weight: 700;
    font-size: 2.1rem;
    color: #222a49;
    margin-bottom: 1.1rem !important;
    letter-spacing: 0.6px;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}
.login-card h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    background: linear-gradient(90deg, #4a6cf7 40%, #ffad3b 100%);
    border-radius: 2px;
    margin: 10px auto 0 auto;
    animation: expand-bar 0.6s both;
}
@keyframes expand-bar { from {width: 0;} to {width: 52px;} }

/* Form inputs */
.login-card .form-label {
    color: #222a49;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.login-card .form-control {
    border-radius: 11px;
    padding: 11px 16px;
    background: #f5f7fb;
    border: 1.5px solid #e2e6f9;
    transition: border 0.18s, box-shadow 0.13s;
    font-size: 1.08rem;
}
.login-card .form-control:focus {
    border: 1.5px solid #4a6cf7;
    box-shadow: 0 2px 12px rgba(74,108,247,0.10);
    background: #fff;
    outline: none;
}

/* Bouton principal */
.login-card .btn-accent {
    font-weight: 600;
    font-size: 1.09rem;
    padding: 11px 0;
    border-radius: 13px;
    background: linear-gradient(90deg, #4a6cf7 0%, #2744b9 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(74,108,247,0.11);
    transition: background 0.18s, transform 0.15s, box-shadow 0.13s;
    letter-spacing: 0.2px;
}
.login-card .btn-accent:hover, .login-card .btn-accent:focus {
    background: linear-gradient(90deg, #3754bf 0%, #1b2e72 100%);
    color: #fff !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 20px rgba(74, 108, 247, 0.17);
    text-decoration: none;
}

/* Lien oublié */
.login-card .text-center a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.18s;
    font-weight: 500;
}
.login-card .text-center a:hover {
    color: #1a1f36;
    text-decoration: underline;
}

/* Flash messages */
.flash-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
  font-size: 0.98rem;
  border-radius: 10px;
  margin-bottom: 0.2rem;
}
.flash-msg .alert {
  padding: 0.55rem 1rem;
  animation: fadeIn 0.4s ease-out;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  max-width: 410px;
  width: 100%;
  text-align: center;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .login-card {
        max-width: 98vw;
        padding: 1.3rem 0.7rem 1.2rem 0.7rem;
    }
    .flash-msg .alert {
        max-width: 95vw;
    }
    .login-card h2 { font-size: 1.35rem; }
}

body.login-page #nav-actions {
    display: none !important;
}



