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

:root {
  --bg: #f7f6f2;
  --bg-input: #ffffff;
  --text-primary: #1a1916;
  --text-secondary: #6b6a65;
  --text-tertiary: #a09f9a;
  --border-strong: rgba(26,25,22,0.2);
  --bubble-awla: #f0efe9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --bg-input: #252420;
    --text-primary: #f0efe9;
    --text-secondary: #a09f9a;
    --text-tertiary: #6b6a65;
    --border-strong: rgba(240,239,233,0.2);
    --bubble-awla: #252420;
  }
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.container {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.logo {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tagline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

.intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

input[type="password"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0.5px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  text-align: center;
  letter-spacing: 0.05em;
}

input[type="password"]:focus {
  border-color: var(--text-secondary);
}

button {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--text-primary);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover { opacity: 0.85; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.error {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #c0392b;
  margin-top: 8px;
  min-height: 14px;
}

.footer {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 3rem;
  letter-spacing: 0.08em;
}

/* Language switch link */
.lang-switch {
  margin-top: 1.5rem;
}

.lang-switch a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch a:hover { color: var(--text-secondary); }
