:root {
  color-scheme: dark;
  --bg: #000814;
  --text: #eef2f7;
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #4f8cff;
  --accent-hover: #6ea0ff;
  --daily-panel-surface:
    radial-gradient(circle at center, #526990 0%, transparent 45%),
    #3c4f76;
  --danger: #ff8f8f;
}

* {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(79, 140, 255, 0.18), transparent 42%),
    radial-gradient(circle at 80% 85%, rgba(82, 105, 144, 0.28), transparent 38%),
    var(--bg);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 40px);
}

.login-card {
  width: min(100%, 420px);
  padding: clamp(28px, 4vw, 36px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--daily-panel-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 28px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 28px;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}

.login-brand-mark {
  display: block;
  height: 1.55em;
  width: auto;
  flex: 0 0 auto;
  opacity: 0.94;
}

.login-brand-copy {
  min-width: 0;
}

.login-brand-name {
  margin: 0;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.96);
}

.login-brand-tagline {
  margin: 0.35em 0 0;
  font-size: 0.72em;
  color: var(--muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.login-field input {
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 8, 20, 0.34);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.72);
  background: rgba(0, 8, 20, 0.48);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 79, 79, 0.12);
  border: 1px solid rgba(255, 143, 143, 0.28);
  color: var(--danger);
  font-size: 0.84rem;
  line-height: 1.35;
}

.login-error.hidden {
  display: none;
}

.login-submit {
  margin-top: 4px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.login-submit:hover:not(:disabled) {
  background: var(--accent-hover);
}

.login-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.login-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}
