  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg:       #0f0f0e;
    --surface:  #1a1a18;
    --border:   #2a2a28;
    --text:     #f0ede8;
    --muted:    #7a776f;
    --amber:    #f59e0b;
    --amber-dim:#2a1f05;
    --red:      #ef4444;
    --radius:   12px;
  }

  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    /* Texture subtile */
    background-image:
      radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,.08) 0%, transparent 70%);
  }

  .login-wrap {
    width: 100%;
    max-width: 380px;
    animation: fadeUp .4s ease both;
  }

  @keyframes fadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
  }

  /* Logo */
  .login-logo {
    text-align: center;
    margin-bottom: 28px;
  }
  .login-logo .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 16px rgba(245,158,11,.4));
    animation: float 3s ease-in-out infinite;
  }
  @keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
  }
  .login-logo h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
  }
  .login-logo p {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  /* Carte */
  .login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,.5);
  }

  /* Erreur */
  .login-error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .85rem;
    color: var(--red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Champs */
  .field {
    margin-bottom: 16px;
  }
  .field label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
  }
  .field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
  }
  .field input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,.12);
  }
  .field input::placeholder { color: var(--muted); }

  /* Bouton */
  .btn-login {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    background: var(--muted);
    color: #1a1000;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .02em;
    transition: opacity .15s, transform .1s;
    -webkit-appearance: none;
  }
  .btn-login:active {
    opacity: .85;
    transform: scale(.98);
  }

  /* Footer */
  .login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: .72rem;
    color: var(--muted);
  }