:root {
  --panel-bg: rgba(0, 0, 0, 0.62);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text: #f4f1ff;
  --muted: rgba(244, 241, 255, 0.72);
  --accent: #a458fb;
  --input-bg: rgba(255, 255, 255, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55)),
    url("assets/background.jpg") center / cover no-repeat fixed;
  overflow-x: hidden;
}

.page-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(92vw, 420px);
  padding: 2rem;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);

  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: card-enter 850ms ease forwards;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  letter-spacing: 0.06em;
  text-align: center;
}

.subtitle {
  margin: 0.35rem 0 1.75rem;
  color: var(--muted);
  text-align: center;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  font-size: 0.92rem;
  color: var(--muted);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: var(--input-bg);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(164, 88, 251, 0.25);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0;
  cursor: pointer;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: white;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.08);
}

.status-message {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 1rem;
  }

  .login-card {
    padding: 1.5rem;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dashboard-card {
  display: grid;
  place-items: center;
  min-height: 180px;
}

.success-text {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}
