:root {
  --cream:     #FFFCF5;
  --ink:       #1A1814;
  --ink-soft:  #3A352D;
  --mute:      #6B645A;
  --line:      #E5DFD2;
  --red:       #B02020;
  --red-deep:  #8C1818;
  --shadow-1:  0 1px 2px rgba(26,24,20,.06), 0 4px 12px rgba(26,24,20,.04);
  --shadow-2:  0 10px 30px rgba(26,24,20,.08), 0 2px 8px rgba(26,24,20,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 380px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 2px 6px rgba(176,32,32,.35);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: 3px;
}

.brand em { font-style: normal; color: var(--red); }

.muted {
  color: var(--mute);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  margin-bottom: 1rem;
  transition: border-color .15s, box-shadow .15s;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(176,32,32,.12);
  background: #ffffff;
}

.buttons {
  display: flex;
  gap: 0.5rem;
}

button {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .15s, border-color .15s;
}

button:hover {
  background: var(--cream);
  border-color: #ccc8be;
}

#login {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(176,32,32,.28);
}

#login:hover {
  background: linear-gradient(180deg, #be2424 0%, var(--red-deep) 100%);
  box-shadow: 0 4px 14px rgba(176,32,32,.4);
}

.status {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  min-height: 1em;
  font-size: 0.875rem;
}

.status:empty {
  padding: 0;
  min-height: 0;
}

.status[data-error="true"] {
  background: rgba(176,32,32,.08);
  border: 1px solid rgba(176,32,32,.2);
  color: var(--red-deep);
}

.status[data-error="false"]:not(:empty) {
  background: rgba(30,122,68,.08);
  border: 1px solid rgba(30,122,68,.2);
  color: #175c35;
}
