* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(111, 73, 184, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(54, 94, 181, 0.10), transparent 35%),
        #080b12;
      color: #f5f7ff;
    }

    .login-wrapper {
      width: 100%;
      max-width: 430px;
      padding: 20px;
    }

    .login-card {
      background: rgba(17, 21, 31, 0.96);
      border: 1px solid #252c3a;
      border-radius: 18px;
      padding: 34px;
      box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(105, 69, 183, 0.08);
    }

    .brand {
      text-align: center;
      margin-bottom: 30px;
    }

    .brand-icon {
      width: 58px;
      height: 58px;
      margin: 0 auto 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 15px;
      background: linear-gradient(135deg, #171d2a, #101520);
      border: 1px solid #39486d;
      font-size: 26px;
      box-shadow: 0 0 25px rgba(111, 73, 184, 0.18);
    }

    .brand h1 {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: 1px;
    }

    .brand p {
      margin-top: 7px;
      color: #7e8ba8;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .title {
      margin-bottom: 22px;
      text-align: center;
    }

    .title h2 {
      font-size: 25px;
      margin-bottom: 8px;
    }

    .title p {
      color: #7e8ba8;
      font-size: 13px;
    }

    .field {
      margin-bottom: 17px;
    }

    .field label {
      display: block;
      margin-bottom: 8px;
      color: #aeb8cc;
      font-size: 13px;
      font-weight: 600;
    }

    .field input {
      width: 100%;
      height: 48px;
      padding: 0 14px;
      border-radius: 10px;
      border: 1px solid #2b3444;
      background: #101520;
      color: #ffffff;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .field input:focus {
      border-color: #697cf5;
      box-shadow: 0 0 0 3px rgba(105, 124, 245, 0.12);
    }

    .login-button {
      width: 100%;
      height: 48px;
      margin-top: 7px;
      border: 0;
      border-radius: 10px;
      background: linear-gradient(135deg, #697cf5, #8459c9);
      color: #ffffff;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
      box-shadow: 0 10px 25px rgba(105, 124, 245, 0.18);
    }

    .login-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 13px 30px rgba(105, 124, 245, 0.25);
    }

    .login-button:disabled {
      opacity: 0.65;
      cursor: wait;
      transform: none;
    }

    .error {
      display: none;
      margin-bottom: 17px;
      padding: 12px 14px;
      border-radius: 9px;
      border: 1px solid rgba(240, 82, 82, 0.35);
      background: rgba(240, 82, 82, 0.08);
      color: #ff8f8f;
      font-size: 13px;
      line-height: 1.45;
    }

    /* Retour après expiration de session ou changement de mot de passe. */
    .info {
      margin-bottom: 17px;
      padding: 12px 14px;
      border-radius: 9px;
      border: 1px solid rgba(214, 161, 58, 0.35);
      background: rgba(214, 161, 58, 0.08);
      color: #f0c765;
      font-size: 13px;
      line-height: 1.45;
    }

    .info[hidden] {
      display: none;
    }

    .footer {
      margin-top: 22px;
      text-align: center;
      color: #58657f;
      font-size: 11px;
    }
