:root{
  /* Monochrome base */
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #0f0f0f;
  --muted: #5a5a5a;

  --line: rgba(0,0,0,.12);
  --line2: rgba(0,0,0,.18);
  --shadow: 0 18px 55px rgba(0,0,0,.08);

  /* Teal accents (subtle, professional) */
  --teal: #0f766e;          /* teal-700-ish */
  --tealHover: #115e59;     /* slightly deeper */
  --tealRing: rgba(15,118,110,.18);

  /* Red accents (danger) */
  --dangerSoft: rgba(217, 58, 58, .10);
  --dangerBorder: rgba(217, 58, 58, .18);
  --dangerText: #8f1f1f;

  --btnGhostBg: #ffffff;
  --btnGhostHover: #f2f2f2;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg);
}

.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:42px 16px 28px;
  gap:18px;
}

.card{
  width:min(760px, 100%);
  background: var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
}

.card__header{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}

/* Keep the red “Danger Zone” accent */
.badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background: var(--dangerSoft);
  border:1px solid var(--dangerBorder);
  color: var(--dangerText);
  font-weight:650;
  letter-spacing:.2px;
  font-size:12px;
}

h1{
  font-size:28px;
  margin:0;
  letter-spacing:-.3px;
}

.muted{color:var(--muted); margin:0; line-height:1.5}
.tiny{font-size:12px}

.notice{
  display:flex;
  gap:12px;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fafafa;
  margin:14px 0 18px;
}

.notice__icon{
  width:28px; height:28px;
  border-radius:10px;
  display:grid; place-items:center;
  background:#fff;
  border:1px solid var(--line2);
  font-weight:800;
  color: var(--teal); /* tiny teal hint */
}

.notice__title{margin:0; font-weight:750}
.notice__text{margin:6px 0 0; color:var(--muted)}

.form{display:flex; flex-direction:column; gap:14px}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media (max-width:720px){
  .grid{grid-template-columns:1fr}
  h1{font-size:24px}
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field__label{
  font-size:13px;
  font-weight:650;
}

.field__hint{
  font-size:12px;
  color:rgba(90,90,90,.95);
}

/* Style only text-like inputs (not checkbox) */
input[type="email"],
input[type="password"],
input[type="text"]{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.16);
  background:#ffffff;
  color:var(--text);
  padding:12px 12px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder{
  color:rgba(90,90,90,.70);
}

/* Teal focus ring (subtle) */
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus{
  border-color: rgba(15,118,110,.45);
  box-shadow:0 0 0 6px var(--tealRing);
}

.confirm{
  border-radius:16px;
  border:1px solid var(--line);
  background:#fbfbfb;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  color:rgba(15,15,15,.92);
}

/* Native checkbox checkmark + teal accent */
.check input[type="checkbox"]{
  appearance:auto;
  -webkit-appearance:auto;
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color: var(--teal);
}

.check input[type="checkbox"]:focus-visible{
  outline: 3px solid var(--tealRing);
  outline-offset: 2px;
}

.pill{
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
}

.actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
}

.btn{
  position:relative;
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:750;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .06s ease, opacity .15s ease, background-color .15s ease;
}

.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55; cursor:not-allowed}

/* Primary button becomes teal (as you requested) */
.btn--danger{
  background: var(--teal);
  color:#ffffff;
  box-shadow: 0 14px 32px rgba(15,118,110,.16);
}

.btn--danger:hover{background: var(--tealHover)}

.btn--ghost{
  background: var(--btnGhostBg);
  border:1px solid var(--line);
  color:var(--text);
}

.btn--ghost:hover{background: var(--btnGhostHover)}

.btn__spinner{
  width:16px; height:16px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.95);
  display:none;
  animation:spin .9s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg)}}

.status{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  min-height:44px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fafafa;
  color:var(--text);
}

.status--ok{
  background:#f3f7f6;
  border-color: rgba(15,118,110,.18);
}

.status--err{
  background:#f8f1f1;
  border-color: rgba(217,58,58,.18);
}

.footer{width:min(760px, 100%); text-align:center}

.dialog{
  border:none;
  padding:0;
  background:transparent;
}

.dialog::backdrop{
  background:rgba(0,0,0,.45);
}

.dialog__panel{
  width:min(520px, calc(100vw - 24px));
  border-radius:18px;
  border:1px solid var(--line);
  background:#ffffff;
  box-shadow:var(--shadow);
  padding:18px;
}

.dialog__actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:14px;
}
