:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  background: #0b0907;
  color: #d4c5a9;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(201, 147, 58, 0.14), transparent 38%),
    #0b0907;
}

.card {
  width: min(100%, 660px);
  padding: 32px;
  border: 1px solid #3a2e1e;
  border-radius: 16px;
  background: #1a1612;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #3a2e1e;
}

.brand {
  color: #e8bb6e;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow {
  color: #7a6a52;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

h1 {
  margin: 28px 0 12px;
  color: #e8bb6e;
  font-size: clamp(1.45rem, 5vw, 2rem);
}

p, li { line-height: 1.55; }

.warning {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(224, 106, 115, 0.5);
  border-radius: 10px;
  background: rgba(224, 106, 115, 0.07);
}

.warning strong { color: #f08a92; }
.warning ul { padding-left: 22px; }
.warning p { margin-bottom: 0; color: #a99573; }

form { display: grid; gap: 10px; }
label { color: #d4c5a9; }

input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #3a2e1e;
  border-radius: 8px;
  outline: none;
  background: #110f0c;
  color: #f1e5cf;
  font: inherit;
}

input:focus { border-color: #c9933a; }

.password-field { position: relative; }
.password-field input { padding-right: 52px; }

.icon-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 0;
  color: #e8bb6e;
  background: transparent;
  cursor: pointer;
}

.link-button {
  justify-self: end;
  padding: 5px 0 12px;
  border: 0;
  color: #e8bb6e;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0;
}

.confirmation input { margin-top: 4px; accent-color: #e06a73; }

.message {
  min-height: 24px;
  color: #f08a92;
  line-height: 1.4;
}

.message.info { color: #e8bb6e; }

.danger-button {
  min-height: 50px;
  border: 1px solid #e06a73;
  border-radius: 8px;
  color: #fff6ed;
  background: #a53d46;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-button:disabled {
  border-color: #4f3d32;
  color: #7a6a52;
  background: #262019;
  cursor: not-allowed;
}

.success { text-align: center; }
.success-icon {
  width: 64px;
  height: 64px;
  margin: 30px auto 0;
  display: grid;
  place-items: center;
  border: 1px solid #c9933a;
  border-radius: 50%;
  color: #e8bb6e;
  font-size: 2rem;
}

@media (max-width: 520px) {
  body { padding: 0; }
  .card { min-height: 100vh; padding: 24px 18px; border: 0; border-radius: 0; }
  header { align-items: flex-start; flex-direction: column; }
}
