:root{
  --bg: #000000;
  --panel: rgba(255,255,255,0.04);
  --panel2: rgba(255,255,255,0.06);
  --gold: #d8c79a;
  --gold2: rgba(216,199,154,0.55);
  --text: rgba(255,255,255,0.86);
  --muted: rgba(255,255,255,0.65);
  --error: #ffb4b4;
  --ok: #b7ffcf;
  --border: rgba(216,199,154,0.22);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(216,199,154,0.08), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(216,199,154,0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wrap{
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.header{
  text-align:center;
  padding: 10px 0 18px;
}

.logo{
  width: 100%;
  max-width: 420px;
  height: auto;
  display:block;
  margin: 10px auto 8px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

.subtitle{
  margin: 0;
  color: var(--gold2);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.card{
  margin-top: 18px;
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

h1{
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-weight: 650;
}

p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

label{
  display:block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

input{
  width:100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  outline: none;
}

input:focus{
  border-color: rgba(216,199,154,0.55);
  box-shadow: 0 0 0 3px rgba(216,199,154,0.10);
}

.row{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}

button{
  width:100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(216,199,154,0.35);
  background: linear-gradient(180deg, rgba(216,199,154,0.20), rgba(216,199,154,0.08));
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor:pointer;
}

button:hover{
  background: linear-gradient(180deg, rgba(216,199,154,0.24), rgba(216,199,154,0.10));
}

button:disabled{
  opacity: 0.55;
  cursor: default;
}

.secondary{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
  font-weight: 650;
}

.msg{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 13px;
  display:none;
  white-space: pre-wrap;
}

.msg.ok{
  color: var(--ok);
  border-color: rgba(183,255,207,0.25);
}

.msg.err{
  color: var(--error);
  border-color: rgba(255,180,180,0.25);
}

.small{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.links{
  margin-top: 12px;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

a{
  color: var(--gold);
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

.footer{
  text-align:center;
  margin-top: 18px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}


/* --- Password eye toggle (never white, ever) --- */
.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.06); /* subtle neutral backdrop */
  cursor: pointer;

  /* HARD LOCK color */
  color: #777;

  transition: background 0.15s ease;
}

/* Eye icon */
.toggle-pass::before {
  content: "👁";
  font-size: 18px;
  line-height: 1;

  /* HARD LOCK color again (important) */
  color: #777;
}

/* Hover */
.toggle-pass:hover {
  background: rgba(0,0,0,0.12);
}

/* Active (password visible) */
.toggle-pass.active::before {
  color: #d6b36a; /* gold */
  filter: drop-shadow(0 0 2px rgba(214,179,106,0.5));
}
