/* Academy OS — authentication screens.
   Loaded on top of base.css, which supplies the tokens and brand styles. */

.auth {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth__card {
  width: 100%;
  max-width: 360px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.auth__brand {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
}

.auth__title {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.auth__error {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px;
}

.auth__error p {
  margin: 0;
}

.auth__error p + p {
  margin-top: 6px;
}

/* Form ------------------------------------------------------------------- */

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgb(26 26 26 / 7%);
  outline: none;
}

.btn {
  width: 100%;
  height: 40px;
  margin-top: 4px;
  background: var(--accent-green-strong);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn--link {
  display: block;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
}

.auth__link {
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.auth__link:hover {
  color: var(--text);
  text-decoration: underline;
}

.auth__hint {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
