.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.login-page::after {
  content: "";
  position: fixed;
  top: 40%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 360px;
  background: radial-gradient(ellipse, rgba(139, 124, 248, 0.13) 0%, transparent 68%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 48px));
  padding: 52px 44px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Marque */
.brand {
  display: flex;
  align-items: center;
  height: 38px;
  margin-bottom: 6px;
}

.brand-name {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: reveal 0.55s steps(7, end) 0.15s forwards;
}

@keyframes reveal { to { width: 7ch; } }

.brand-tld {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 0;
  animation: appear 0.2s ease 0.75s forwards;
}

.brand-cursor {
  display: inline-block;
  width: 2px;
  height: 22px;
  background: var(--cursor);
  margin-left: 3px;
  vertical-align: middle;
  opacity: 0;
  animation: appear 0.01s step-end 0.15s forwards, blink 0.9s step-end 0.8s infinite;
}

@keyframes appear { to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.login-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 44px;
  opacity: 0;
  animation: appear 0.35s ease 1s forwards;
}

.login-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent-rim), transparent);
  margin-bottom: 28px;
  opacity: 0;
  animation: appear 0.35s ease 0.95s forwards;
}

.login-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
  opacity: 0;
  animation: appear 0.35s ease 1.1s forwards;
}

.btn-github {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 18px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-rim);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  opacity: 0;
  animation: rise 0.4s ease 1.2s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.btn-github:hover  { background: rgba(139, 124, 248, 0.18); border-color: var(--accent); }
.btn-github:active { transform: scale(0.99); }
.btn-github:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-github svg { flex-shrink: 0; opacity: 0.85; }

.login-footer {
  margin-top: 36px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  opacity: 0;
  animation: appear 0.35s ease 1.4s forwards;
}

.login-footer strong { color: rgba(230, 227, 240, 0.5); font-weight: 500; }

.login-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  opacity: 0;
  animation: appear 0.35s ease 1.5s forwards;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .brand-name     { width: 7ch; animation: none; }
  .brand-tld,
  .brand-cursor,
  .login-tagline,
  .login-sep,
  .login-label,
  .login-footer,
  .login-status   { opacity: 1; animation: none; }
  .btn-github     { opacity: 1; transform: none; animation: none; }
}
