:root {
  --green-bg: #14352a;
  --gold-1: #d4b06e;
  --gold-2: #b8913a;
  --text: #f3f1ea;
  --muted: #a9b5ae;
  --error: #f0a39a;
  --ok: #9fd8b4;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-color: var(--green-bg);
  /* Textura de losangos */
  background-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 0L14 7L7 14L0 7Z' fill='none' stroke='%23275a45' stroke-width='1' stroke-opacity='.55'/%3E%3Ccircle cx='7' cy='7' r='.9' fill='%23306b52' fill-opacity='.6'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 48px 33px 40px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(160deg, rgba(16,40,31,.92), rgba(10,28,22,.94));
  border: 1px solid rgba(212,176,110,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.card.wide { max-width: 640px; }

.logo { width: 24px; height: 24px; margin: 0 auto 18px; display: block; }

h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.tagline {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.step { margin-top: 38px; text-align: left; }
.step[hidden] { display: none; }

.step-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step-sub { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.step-sub strong { color: var(--text); font-weight: 600; word-break: break-all; }

.field + .field { margin-top: 16px; }
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
input::placeholder { color: #7f8f87; }
input:focus { border-color: var(--gold-1); background: rgba(255,255,255,.09); }
input[aria-invalid="true"] { border-color: var(--error); }

.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw .toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px; cursor: pointer;
}
.pw .toggle:hover { color: var(--text); }

.hint { font-size: 12px; color: #7f8f87; margin-top: 8px; }

.btn {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(110deg, var(--gold-1), var(--gold-2));
  color: #14140f;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 46px;
  text-align: center;
  transition: filter .15s ease, transform .1s ease, opacity .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.18);
}

.links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
}
.link {
  background: none; border: 0; padding: 0;
  color: var(--gold-1);
  font: inherit; font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }
.link.muted { color: var(--muted); }

.msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg[hidden] { display: none; }
.msg.error { background: rgba(240,163,154,.1); color: var(--error); border: 1px solid rgba(240,163,154,.25); }
.msg.ok { background: rgba(159,216,180,.08); color: var(--ok); border: 1px solid rgba(159,216,180,.22); }

.foot {
  margin-top: 32px;
  font-size: 12px;
  color: #6f8178;
  text-align: center;
}
