/* assets/css/auth.css */
:root {
  --ink: #1a1008;
  --paper: #f5f0e8;
  --cream: #ede7d6;
  --red: #c8372d;
  --gold: #b8860b;
  --muted: #7a6e60;
  --accent: #2d6b4a;
  --border: #d4c9b0;
  --shadow: rgba(26,16,8,0.15);
}

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

body {
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-bg {
  width: 100%;
  max-width: 440px;
  position: relative;
}

/* Floating Japanese characters */
.auth-deco {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-deco span {
  position: absolute;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  user-select: none;
}

.auth-deco span:nth-child(1) { top: 5%;  left: 3%;  }
.auth-deco span:nth-child(2) { top: 20%; right: 5%; font-size: clamp(3rem,8vw,7rem); }
.auth-deco span:nth-child(3) { bottom: 15%; left: 10%; font-size: clamp(5rem,15vw,12rem); }
.auth-deco span:nth-child(4) { bottom: 5%; right: 8%; }

.auth-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--red);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.badge {
  background: var(--red);
  color: white;
  font-family: 'Fira Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.auth-logo h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.auth-logo h1 em {
  color: var(--red);
  font-style: normal;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Alerts */
.alert {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.alert-error {
  background: #fff0ef;
  border: 1px solid var(--red);
  color: var(--red);
}

.alert-success {
  background: #f0faf4;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.alert-success a {
  color: var(--accent);
  font-weight: 700;
}

/* Form fields */
.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

label .hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,55,45,0.12);
}

.btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: #a82d24;
}

.btn-primary:active {
  transform: scale(0.99);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}

.auth-footer a:hover {
  text-decoration: underline;
}
