/* ============================================
   SaltRig Pro — Auth Pages
   Styles for signup.html and login.html
   ============================================ */

.auth-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27, 111, 168, 0.12), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--sand) 60%);
  padding: 2rem 1rem;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.auth-card {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(20, 41, 62, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.auth-head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-title {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.field-link {
  font-size: 0.82rem;
  color: var(--ocean);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.field-link:hover {
  border-bottom-color: var(--ocean);
}

.field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(20, 41, 62, 0.18);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  appearance: none;
  -webkit-appearance: none;
}

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

.field-input:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(27, 111, 168, 0.12);
}

.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356697C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.auth-error {
  display: none;
  padding: 0.75rem 1rem;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: var(--radius);
  color: #b91c1c;
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-submit {
  margin-top: 0.5rem;
  padding: 0.9rem;
  font-size: 0.98rem;
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-link {
  color: var(--ocean);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.auth-link:hover {
  border-bottom-color: var(--ocean);
}

.auth-fine {
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
  line-height: 1.6;
}

.auth-fine .auth-link {
  font-weight: 500;
  font-size: inherit;
}
