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

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: #f4f4f5;
  color: #18181b;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}

h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.subtitle { color: #71717a; font-size: 0.875rem; margin-bottom: 1.5rem; }

.field { margin-bottom: 1rem; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #18181b;
  transition: border-color 0.1s;
}
input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus {
  border-color: #6366f1;
  outline: none;
}
.input-readonly {
  width: 100%; padding: 0.5rem 0.65rem;
  border: 1px solid #e4e4e7; border-radius: 6px;
  font-size: 0.9rem; font-family: inherit;
  color: #71717a; background: #f4f4f5; cursor: default;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  color: #991b1b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.btn-primary {
  width: 100%;
  padding: 0.55rem;
  background: #18181b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.1s;
  margin-top: 0.5rem;
}
.btn-primary:hover { background: #3f3f46; }

.switch-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #71717a;
}
.switch-link a { color: #6366f1; text-decoration: none; }
.switch-link a:hover { text-decoration: underline; }
