*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.page {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-main {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
}

.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 1.5rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  padding: 2.25rem 2rem 2rem;
}

.card-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.25rem;
}

.subtitle {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.helper {
  margin-top: 0.9rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label {
  font-size: 0.85rem;
  color: #d1d5db;
}

.input {
  border-radius: 0.75rem;
  border: 1px solid #374151;
  background-color: #020617;
  color: #e5e7eb;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.input::placeholder {
  color: #6b7280;
}

.input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  background-color: #020617;
}

.input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #020617 inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
}

.button {
  margin-top: 0.25rem;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #020617;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.button:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.25);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.error {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #f97373;
}

