/* Shared styles for login.php and setup.php.
   Imports the same CSS variables defined in style.css via :root. */

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

/* Re-declare variables here so auth pages are self-contained */
:root {
  --bg:           #f4f0e8;
  --bg-raised:    #ede9e0;
  --fg:           #2a2720;
  --muted:        #9c9488;
  --label:        #6e6860;
  --faint:        #ddd8ce;
  --input-border: #ccc8be;
  --accent:       #4a7d9f;
  --on-accent:    #fff;
  --error-bg:     #fdf2f0;
  --error-fg:     #a83228;
  --error-border: #e8c4c0;
  --shadow-card:  0 4px 24px rgba(0,0,0,.06);
  --radius:       4px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 360px;
  padding: 40px 36px;
  background: var(--bg);
  border: 1px solid var(--faint);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

h1 { font-size: 20px; font-weight: 600; margin-bottom: 28px; }
h1 + .sub { margin-top: -22px; }
.sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--label);
}

input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s;
  margin-bottom: 16px;
}
input:focus { border-color: var(--accent); }

.btn {
  width: 100%;
  padding: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  background: var(--fg);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }

.error {
  background: var(--error-bg);
  color: var(--error-fg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 18px;
}
