/* Auth page — signin / join */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 60px 40px;
}

.auth-header {
  margin-bottom: 40px;
}

.auth-header h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  margin: 0 0 8px;
}

.auth-header h1 em {
  color: var(--gold);
  font-style: italic;
}

.auth-header p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-mute);
  margin: 0;
}

/* Mode switcher */

.auth-modes {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.auth-mode {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: transparent;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.auth-mode:hover {
  color: var(--fg-mute);
}

.auth-mode.active {
  color: var(--fg);
}

.auth-mode.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

/* Form */

.auth-fields-row {
  display: flex;
  gap: 12px;
}

.auth-fields-row .auth-field {
  flex: 1;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.auth-field input {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input::placeholder {
  color: var(--fg-dim);
}

.auth-field input:focus {
  border-color: var(--fg-mute);
}

.auth-error-block {
  border: 1px solid var(--danger);
  border-left-width: 3px;
  padding: 14px 16px;
  margin: 4px 0;
}

.auth-error-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
  margin-bottom: 6px;
}

.auth-error-hint {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.5;
}

.auth-submit {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 24px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.auth-submit:hover {
  background: var(--gold-soft);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-footer-text {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 24px;
}

.auth-text-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
}

.auth-text-btn:hover {
  text-decoration: underline;
}
