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

body {
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  padding: 2rem 1rem;
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 20px 50px rgba(0,0,0,.08);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.auth-logo a {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #111;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -.02em;
  margin-bottom: .3rem;
}

.subtitle {
  color: #888;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.alert {
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.alert-error {
  background: #fff1f1;
  color: #c0392b;
  border: 1px solid #fccaca;
}
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field-label-row label { margin-bottom: .35rem; }
.forgot-link {
  font-size: .78rem;
  font-weight: 600;
  color: #8B0000;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }
.field input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: #111;
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus {
  border-color: #8B0000;
  box-shadow: 0 0 0 3px rgba(139,0,0,.1);
  background: #fff;
}

.btn-primary {
  width: 100%;
  padding: .85rem;
  background: #8B0000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: .5rem;
  transition: opacity .15s, transform .15s;
  letter-spacing: .01em;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .875rem;
  color: #777;
}
.auth-switch a { color: #8B0000; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
