/* Masster Mind registration — styled to match the app login (brand indigo + slate, rounded-xl). */
:root {
  --brand-900: #2B2367;
  --brand-800: #362D7A;
  --brand-700: #41378D;
  --slate-50:  #f8fafc;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --rose-600:  #e11d48;  --rose-50: #fff1f2;  --rose-200: #fecdd3;
  --green-700: #15803d;  --green-50: #f0fdf4; --green-200: #bbf7d0;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
}

.page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  background: var(--brand-900);
  overflow: hidden;
}
/* indigo hero — echoes the app login brand panel (soft gradient blobs) */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(440px 440px at 92% 6%,  rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(360px 360px at 4% 90%,  rgba(124, 58, 237, 0.40), transparent 70%),
    radial-gradient(300px 300px at 78% 60%, rgba(59, 130, 246, 0.32), transparent 70%);
}
/* subtle grid overlay */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  padding: 40px 34px 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo { height: 36px; width: auto; margin-bottom: 22px; }

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  margin: 0 0 8px;
}

.subtitle { color: var(--slate-500); font-size: 0.9rem; line-height: 1.55; margin: 0 0 24px; }

.form-signin { text-align: left; display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }

label { font-size: 0.78rem; font-weight: 600; color: var(--slate-600); }

input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 0.92rem;
  color: var(--slate-900);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: var(--slate-400); }

input:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(65, 55, 141, 0.18);
}

.submit {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand-900);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(43, 35, 103, 0.25);
  transition: background .15s, transform .05s;
}

.submit:hover  { background: var(--brand-800); }
.submit:active { background: var(--brand-700); transform: translateY(1px); }

.footer { margin: 24px 0 0; font-size: 0.72rem; color: var(--slate-400); }

/* Alerts — markup injected by script.js (Bootstrap-style class names) */
.alerts { margin-bottom: 2px; }
.alert {
  position: relative;
  text-align: left;
  font-size: 0.85rem;
  padding: 11px 36px 11px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-danger  { background: var(--rose-50);  border-color: var(--rose-200);  color: var(--rose-600); }
.alert-primary { background: #eef0fb;          border-color: #d4d7f3;          color: var(--brand-700); }
.alert-success { background: var(--green-50);  border-color: var(--green-200); color: var(--green-700); }
.alert .close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none;
  font-size: 1.05rem; line-height: 1;
  color: inherit; opacity: 0.55; cursor: pointer;
}
.alert .close:hover { opacity: 1; }

@media (max-width: 480px) {
  .card { padding: 30px 22px 24px; border-radius: 16px; }
}
