:root {
  --bg: #f3f4f4;
  --panel: #fff;
  --ink: #181a1b;
  --muted: #6b6f73;
  --line: #d9dcde;
  --accent: #2f3437;
  --accent-strong: #181a1b;
  --red: #b65a58;
  --gold: #c7a45a;
  --shadow: 0 18px 46px rgba(24, 26, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #f2f3f3 260px),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #c8b57a;
  box-shadow: 0 0 0 3px rgba(199, 164, 90, 0.14);
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.08;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd2d4;
  border-radius: 6px;
  font-size: 15px;
  text-transform: none;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.035);
}

input:focus {
  border-color: rgba(199, 164, 90, 0.7);
  outline: 3px solid rgba(199, 164, 90, 0.22);
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.password-toggle:hover {
  color: #181a1b;
  background: rgba(199, 164, 90, 0.16);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(32, 121, 107, 0.18);
}

.eye-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 75% 0;
  transform: rotate(45deg);
}

.eye-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] {
  color: var(--accent);
}

button {
  min-height: 44px;
  margin-top: 4px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.08);
}

button:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
}

.forgot-block {
  display: grid;
  gap: 10px;
}

.forgot-toggle {
  min-height: auto;
  width: max-content;
  margin: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.forgot-toggle:hover {
  color: var(--accent-strong);
  background: transparent;
  text-decoration: underline;
}

.forgot-panel {
  display: grid;
  gap: 7px;
  padding: 12px;
  color: var(--ink);
  background: #fbfbfa;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.forgot-panel p {
  margin: 0;
}

.reset-grid {
  display: grid;
  gap: 8px;
}

.reset-grid button {
  margin: 0;
}

.reset-note {
  color: var(--muted);
  font-size: 12px;
}

.forgot-panel code {
  padding: 1px 5px;
  background: #f6ecd3;
  border-radius: 5px;
}

.message {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.message.success {
  color: var(--accent);
}

.hidden {
  display: none;
}

/* Premium Temiron login polish */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(199, 164, 90, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0, #f2f3f3 280px),
    #f3f4f4;
}

.login-card {
  border-color: rgba(217, 220, 222, 0.82);
  box-shadow:
    0 1px 1px rgba(24, 26, 27, 0.04),
    0 22px 54px rgba(24, 26, 27, 0.12);
}

.brand {
  border-bottom-color: rgba(199, 164, 90, 0.34);
}

#submitButton,
#resetButton {
  color: #ffffff;
  background: linear-gradient(135deg, #9a7436, #73531f);
  border-color: #7c5b28;
  box-shadow: 0 8px 18px rgba(115, 83, 31, 0.13);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

#submitButton:hover,
#resetButton:hover {
  background: linear-gradient(135deg, #ad8542, #7d5a24);
  border-color: #6f4f1f;
  box-shadow: 0 10px 24px rgba(115, 83, 31, 0.2);
  transform: translateY(-1px);
}

.forgot-toggle {
  color: #6d5423;
}

.forgot-toggle:hover {
  color: #181a1b;
}
