/* /auth — unified email-first auth surface
   480px white card on the chrome triangle pattern, hero block on top, form below. */

.auth-card {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 3em auto;
  padding: 2.5em 2em;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 40, 80, 0.22);
  margin-bottom: 1.5em;
}

.auth-hero {
  margin-bottom: 1.8em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid var(--line);
}

.auth-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.4em 0;
  line-height: 1.2;
}

.auth-hero-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

#auth-form .field {
  margin-bottom: 16px;
}

#auth-form .field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

#auth-form input[type="email"],
#auth-form input[type="password"],
#auth-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

#auth-form input:focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 2px rgba(0, 183, 255, 0.2);
}

.auth-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.auth-email-readback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--sky-soft, #f3f8fb);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.auth-email-readback span {
  color: var(--charcoal);
  font-weight: 500;
  word-break: break-all;
}

.auth-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--teal-light);
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.forgot-link {
  display: inline-block;
  font-size: 0.85rem;
  margin-top: 6px;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 4px 0 0 0;
}

.auth-error {
  background: #fdecea;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 12px;
}

.auth-error-target:empty { display: none; }

.auth-loading {
  display: none;
  margin: 12px 0;
}
.auth-loading.htmx-request,
.htmx-request .auth-loading {
  display: block;
}

.auth-terminal {
  text-align: center;
  padding: 0.5em 0;
}
.auth-terminal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.6em 0;
}
.auth-terminal-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 1.2em 0;
}
.auth-terminal-body strong {
  color: var(--charcoal);
  font-weight: 600;
}
.auth-terminal-hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.4em 0;
}

@media (max-width: 540px) {
  .auth-card {
    margin: 1.5em auto;
    padding: 2em 1.2em;
  }
  .auth-hero-title { font-size: 1.2rem; }
}
