/* ========================================
   Shared Auth Styles (login + cadastro)
   ======================================== */

.auth-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 14px 40px;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(340px 130px at 5% -20%, rgba(0, 240, 255, 0.12), transparent 70%),
    var(--bg2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  padding: 28px 24px;
  display: grid;
  gap: 20px;
}

.auth-card__head {
  text-align: center;
  display: grid;
  gap: 10px;
}

.auth-card__head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-card__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.3);
}

.auth-logo__text {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

/* Alerts */
.auth-alert {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
}

.auth-alert--error {
  border-color: rgba(255, 99, 132, 0.45);
  background: rgba(255, 99, 132, 0.08);
  color: var(--error-text);
}

.auth-alert--success {
  border-color: rgba(0, 240, 255, 0.55);
  background: rgba(0, 240, 255, 0.12);
  color: #a6eee7;
}

.auth-alert-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  text-decoration: underline;
  font-size: 12px;
}

.auth-alert-link:hover {
  color: var(--accent2);
}

/* Helper text */
.auth-helper-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.auth-helper-text strong {
  color: var(--text);
  word-break: break-all;
}

.auth-helper-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-helper-text a:hover {
  text-decoration: underline;
}

/* Form */
.auth-form {
  display: grid;
  gap: 14px;
}

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

.auth-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 12, 22, 0.92);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: "Sora", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

/* Fields with icon */
.auth-field--icon {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field--icon input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 12, 22, 0.92);
  color: var(--text);
  padding: 13px 14px 13px 42px;
  font-size: 14px;
  font-family: "Sora", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.auth-field--icon input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.auth-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.auth-field__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  z-index: 1;
  transition: color 0.2s;
}

.auth-field__toggle:hover {
  color: var(--text);
}

/* Options row */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-forgot {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}

.auth-forgot:hover {
  opacity: 0.8;
}

/* Submit button */
.auth-submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--text);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Sora", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
}

.auth-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

/* Turnstile */
.cf-turnstile {
  min-height: 65px;
  display: flex;
  justify-content: center;
}

/* Footer */
.auth-footer {
  text-align: center;
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.auth-footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.auth-footer p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer p a:hover {
  text-decoration: underline;
}

.auth-back {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s;
}

.auth-back:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  .auth-page {
    padding: 120px 16px 40px;
    min-height: auto;
  }

  .auth-card {
    border-radius: 12px;
    padding: 20px 16px;
  }

  .auth-logo__text {
    font-size: 20px;
  }

  .auth-card__head h1 {
    font-size: 20px;
  }

  .auth-options {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
