
:root {
  color-scheme: light;
  --bg: #fcf9f4;
  --surface: #fffcf8;
  --surface-soft: #fbf4ec;
  --text: #272d30;
  --text-muted: #656d69;
  --jade: #6f907f;
  --jade-deep: #4f7061;
  --jade-light: #95ab9b;
  --border: #d9dbd4;
  --peach: #e79b81;
  --peach-soft: #fdf3eb;
  --danger: #a65e53;
  --shadow: rgba(50, 45, 40, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 5%, rgba(231, 155, 129, 0.08), transparent 26rem),
    radial-gradient(circle at 96% 22%, rgba(149, 171, 155, 0.14), transparent 24rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-shell {
  width: min(100% - 32px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.login-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--jade);
  box-shadow: inset -7px 0 rgba(255, 252, 248, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 7px;
  height: 16px;
  border: 1.5px solid var(--surface);
}

.brand-mark::before {
  left: 8px;
  border-radius: 5px 0 0 3px;
  border-right: 0;
}

.brand-mark::after {
  right: 8px;
  border-radius: 0 5px 3px 0;
  border-left: 0;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 52px 0 64px;
}

.login-panel {
  width: 100%;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 97% -15%, rgba(149, 171, 155, 0.20), transparent 44%),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: 0 16px 42px var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--jade-deep);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 10vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro {
  max-width: 390px;
  margin: 20px 0 30px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.field-label {
  display: block;
  margin: 0 0 9px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 750;
}

.password-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 252, 248, 0.86);
  box-shadow: inset 0 1px 2px rgba(50, 45, 40, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.password-input:hover { border-color: var(--jade-light); }

.password-input:focus {
  border-color: var(--jade);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(111, 144, 127, 0.14);
}

.password-input:disabled { opacity: 0.58; cursor: not-allowed; }

.sign-in-button {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: var(--surface);
  background: var(--jade-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 9px 22px rgba(79, 112, 97, 0.18);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.sign-in-button:hover {
  background: var(--jade);
  box-shadow: 0 11px 25px rgba(79, 112, 97, 0.22);
}

.sign-in-button:active { transform: translateY(1px); }
.sign-in-button:disabled { opacity: 0.58; cursor: not-allowed; box-shadow: none; }

.error-message {
  margin: -8px 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(166, 94, 83, 0.28);
  border-radius: 16px;
  color: var(--danger);
  background: var(--peach-soft);
  font-size: 0.79rem;
  line-height: 1.45;
}

.remember-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 2px 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.remember-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 4px rgba(231, 155, 129, 0.14);
}

.login-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 650;
}

@media (max-width: 560px) {
  .login-shell { width: min(100% - 22px, 520px); }
  .login-header { min-height: 74px; }
  .login-main { align-items: flex-start; padding: 36px 0 44px; }
  .login-panel { padding: 27px 22px; border-radius: 27px; }
  h1 { font-size: clamp(2.65rem, 14vw, 3.65rem); }
  .intro { margin: 17px 0 26px; font-size: 0.86rem; }
}
