:root {
  --bg1: #0f172a;
  --bg2: #1e293b;
  --accent-2: #06b6d4;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
}
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
}
.container {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(12px);
  animation: slideUp 500ms ease forwards;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.brand-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(34,197,94,0.25);
  animation: logoFloat 4s ease-in-out infinite;
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
.label {
  font-size: 13px;
  color: var(--muted);
}
.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.input::placeholder {
  color: #94a3b8;
}
.input:focus {
  border-color: rgba(34,197,94,0.6);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.button {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #0c1118;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 150ms ease, background 150ms ease;
  box-shadow: 0 8px 18px rgba(34,197,94,0.35);
}
.button:active {
  transform: translateY(1px);
}
.button:hover {
  background: var(--accent-dark);
}
.error {
  margin-top: 10px;
  color: #fecaca;
  background: rgba(239,68,68,0.18);
  border: 1px solid rgba(239,68,68,0.35);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
@keyframes slideUp {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes logoFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
