/* Shared styles for the auth pages */
:root {
  --blue: #2317e6;
  --blue-600: #1f12d6;
  --ink: #0b0b12;
  --muted: #5b5f6e;
  --muted-2: #8b8f9c;
  --line: #ececf3;
  --surface: #f6f6fb;
  --green: #16a34a;
  --red: #c0392b;
  --dot: #e9e9f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 480px at 50% -10%, #efeefc 0%, rgba(255,255,255,0) 60%),
    linear-gradient(#fbfbfe, #ffffff);
  background-color: #fbfbfe;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: .5;
  mask-image: radial-gradient(circle at 50% 38%, #000, transparent 72%);
  pointer-events: none;
}

.auth { position: relative; z-index: 1; width: 100%; max-width: 430px; }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 26px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(145deg, #39d3a7, #2317e6 55%, #0b0b60);
}

.brand .mark-txt { color: var(--blue); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 24px 60px rgba(20, 20, 60, .08);
}

.card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.card .lede { text-align: center; color: var(--muted); font-weight: 500; font-size: 15px; margin: 8px 0 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: .15s ease;
}
.field input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 23, 230, .12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(35, 23, 230, .28);
  transition: .15s ease;
}
.btn:hover { background: var(--blue-600); transform: translateY(-1px); }

.switch { text-align: center; color: var(--muted); font-weight: 500; font-size: 15px; margin-top: 22px; }
.switch a { color: var(--blue); font-weight: 700; text-decoration: none; }
.switch a:hover { text-decoration: underline; }

.alert {
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.alert-error { background: #fdecea; border: 1px solid #f5c6c0; color: var(--red); }
.alert-ok    { background: #ecfdf3; border: 1px solid #c7f0d8; color: #0f7a3d; }
.alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }

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

/* simple dashboard */
.dash {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(20, 20, 60, .08);
  text-align: center;
}
.dash h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dash p { color: var(--muted); font-weight: 500; margin-top: 10px; }
.dash .logout { display: inline-block; margin-top: 24px; }
.dash .logout a {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 22px; font-weight: 700; color: var(--ink);
}
.dash .logout a:hover { border-color: #d9d9e6; background: var(--surface); }
