:root {
  --bg: #0f172a; /* slate-900 */
  --card: #111827; /* gray-900 */
  --muted: #9ca3af; /* gray-400 */
  --text: #e5e7eb; /* gray-200 */
  --ring: #60a5fa; /* blue-400 */
  --primary: #3b82f6; /* blue-500 */
  --primary-700: #1d4ed8; /* blue-700 */
  --danger: #ef4444; /* red-500 */
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(
      60vw 60vw at 20% 0%,
      rgba(59, 130, 246, 0.15),
      transparent 60%
    ),
    radial-gradient(
      60vw 60vw at 80% 100%,
      rgba(14, 165, 233, 0.12),
      transparent 60%
    ),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 28px;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
}
.logo svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.45));
}
h1 {
  margin: 6px 0 22px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}
form {
  display: grid;
  gap: 14px;
}
label {
  font-size: 14px;
  color: var(--muted);
}
.field {
  display: grid;
  gap: 8px;
}
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: #fff;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  outline: none;
  transition:
    box-shadow 0.15s,
    border-color 0.15s,
    transform 0.05s;
}
input::placeholder {
  color: #64748b;
}
input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 14px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.checkbox input {
  width: 16px;
  height: 16px;
}
.forgot {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
}
.forgot:hover {
  opacity: 1;
  text-decoration: underline;
}
.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  transition:
    transform 0.06s ease,
    filter 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.error {
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
  border-radius: 10px;
  font-size: 14px;
}
.brandline {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 16px 0;
}

@media (max-width: 420px) {
  .card {
    padding: 22px;
  }
}
