/* Login UI — Design 2: Minimal (Apple/Linear-style) */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-dim: #6b7280;
  --text-faint: #9ca3af;
  --primary: #111827;
  --primary-hover: #000000;
  --accent: #3b82f6;
  --error: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --card: #141414;
    --border: #262626;
    --text: #f5f5f5;
    --text-dim: #a3a3a3;
    --text-faint: #525252;
    --primary: #ffffff;
    --primary-hover: #f5f5f5;
  }
  button.signin { color: #0a0a0a !important; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body { display: grid; place-items: center; padding: 20px; }
.container { width: 100%; max-width: 380px; }
.brand {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 40px;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--primary); border-radius: 8px;
}
.brand-mark svg { width: 18px; height: 18px; fill: var(--card); }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 36px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
h1.title {
  font-size: 24px; font-weight: 600; letter-spacing: -0.5px;
  margin-bottom: 6px; text-align: center;
}
.subtitle {
  font-size: 14px; color: var(--text-dim);
  text-align: center; margin-bottom: 32px;
}
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
input[type="text"], input[type="password"] {
  width: 100%; padding: 11px 14px; font-size: 15px;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  outline: none; transition: all 0.15s; font-family: inherit;
}
@media (prefers-color-scheme: dark) {
  input[type="text"], input[type="password"] {
    background: #0a0a0a; border-color: #262626;
  }
}
input::placeholder { color: var(--text-faint); }
input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
@media (prefers-color-scheme: dark) {
  input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
  }
}
.password-field { position: relative; }
.toggle-pass {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer;
  padding: 4px; color: var(--text-faint);
  border-radius: 4px; transition: color 0.15s;
}
.toggle-pass:hover { color: var(--text); }
.toggle-pass svg { width: 16px; height: 16px; display: block; }
.row {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 4px; font-size: 13px;
}
.checkbox {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim); cursor: pointer; user-select: none;
}
.checkbox input { display: none; }
.checkbox-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--text-faint);
  border-radius: 4px;
  display: grid; place-items: center;
  transition: all 0.15s; background: var(--card);
}
.checkbox-box svg {
  width: 11px; height: 11px;
  stroke: var(--card); stroke-width: 3;
  fill: none; opacity: 0;
}
.checkbox input:checked + .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox input:checked + .checkbox-box svg { opacity: 1; }
button.signin {
  margin-top: 16px; padding: 12px;
  font-size: 14px; font-weight: 600;
  color: var(--card); background: var(--primary);
  border: 0; border-radius: 10px; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
button.signin:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
button.signin:active { transform: translateY(0); }
.error-msg {
  margin-top: 4px; padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px; color: var(--error);
  font-size: 13px; animation: shake 0.4s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.divider {
  height: 1px; background: var(--border);
  margin: 24px 0 20px;
}
.help-text { font-size: 12px; color: var(--text-faint); text-align: center; }
.footer { margin-top: 24px; text-align: center; font-size: 12px; color: var(--text-faint); }
