:root {
  --navy: #0a0e27;
  --navy-light: #131a3d;
  --teal: #2dd4bf;
  --magenta: #b0339a;
  --text-light: #e8eaf6;
  --text-muted: #9099b8;
  --card-bg: #ffffff;
  --success: #2dd4bf;
  --danger: #e05252;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 20% 10%, var(--navy-light), var(--navy) 60%);
  min-height: 100vh;
  color: var(--text-light);
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  position: relative;
  z-index: 1;
}

.logo-card {
  display: inline-block;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  margin-bottom: 18px;
}

.logo-card img.header-logo {
  display: block;
  width: 260px;
  height: auto;
}

.brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand .logo {
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  font-size: 18px;
}

.brand .logo span { color: var(--teal); }

.brand h1 {
  font-size: 22px;
  margin: 12px 0 4px;
  line-height: 1.3;
}

.brand .ai-word { color: var(--teal); }

.brand p.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.card {
  background: var(--card-bg);
  color: #1a1a1a;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: #33395c;
}

input {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #dfe2ee;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: var(--teal); }

button.primary {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

button.primary:hover { opacity: 0.9; }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.error-box {
  background: #fdeaea;
  color: #a12626;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 14px;
  display: none;
}

.success-box {
  text-align: center;
}

.success-box h2 {
  color: #1a1a1a;
  font-size: 19px;
  margin-top: 4px;
}

.success-box img {
  width: 220px;
  height: 220px;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid #eee;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.badge.ok { background: #e3faf5; color: #0d8c74; }
.badge.warn { background: #fff3e0; color: #b26a00; }

footer.note {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 24px;
}
