:root {
  --bg-1: #0b1220;
  --bg-2: #131b30;
  --glow: rgba(47, 93, 255, 0.35);
  --card: #ffffff;
  --text: #1a1f36;
  --muted: #7a8399;
  --primary: #2f5dff;
  --primary-dark: #1a3fcc;
  --border: #e3e6ed;
  --field-bg: #f7f8fb;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning-bg: #fef3c7;
  --warning-border: #f59e0b;
  --warning-text: #92400e;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 15% -10%, var(--glow), transparent 60%),
    linear-gradient(150deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 32px;
  animation: rise 0.4s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand .logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(47, 93, 255, 0.3);
}

.brand h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 93, 255, 0.12);
  background: #fff;
}

.btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: var(--field-bg);
}

.notice {
  display: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.notice.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}

.notice.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.notice.warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.state {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.state .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.state .icon.ok {
  background: var(--success-bg);
  color: var(--success);
}

.state .icon.bad {
  background: var(--danger-bg);
  color: var(--danger);
}

.state h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.state p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.landing-links {
  margin-top: 8px;
}

.landing-links a {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
}

.landing-links a:hover {
  text-decoration: underline;
}
