/* Wrapper centers the auth card */
.auth-wrapper {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem 2rem; /* top padding pushes the card down */
  min-height: calc(100vh - 80px);
  align-items: flex-start;  /* keep it near the top */
}

/* Main card */
.auth-card {
  background: rgba(5, 22, 35, 0.96); /* slightly lighter than body bg */
  border-radius: 16px;
  padding: 2.5rem 2.75rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color: #f5f7fb;
}

/* Title + subtitle */
.auth-title {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0 0 1.8rem;
  line-height: 1.4rem;
  font-size: 0.98rem;
  color: #c6d2e0;
}

/* Fields */
.auth-form {
  margin: 0;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #d5e0ec;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #1d3345;
  background: #081827;
  color: #f5f7fb;
  font-size: 0.95rem;
}

.auth-field input:focus {
  outline: 2px solid #ffb400;
  outline-offset: 1px;
  border-color: #ffb400;
}

.auth-field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.4;

  color: var(--text-primary, #ffffff);
  background-color: var(--input-bg, #0b1a26);

  border: 1px solid var(--input-border, rgba(255, 255, 255, 0.12));
  border-radius: 6px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #aaa 50%),
    linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.auth-field select:focus {
  outline: 2px solid #ffb400;
  outline-offset: 1px;
  border-color: #ffb400;
  box-shadow: 0 0 0 1px rgba(247, 181, 0, 0.4);
}

.auth-field textarea {
  width: 100%;
  min-height: 140px;

  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;

  color: var(--text-primary, #ffffff);
  background-color: var(--input-bg, #0b1a26);

  border: 1px solid var(--input-border, rgba(255, 255, 255, 0.12));
  border-radius: 6px;

  resize: vertical;
}

.auth-field textarea:focus {
  outline: 2px solid #ffb400;
  outline-offset: 1px;
  border-color: #ffb400;
  box-shadow: 0 0 0 1px rgba(247, 181, 0, 0.4);
}

/* Password + forgot link in one row on desktop */
.auth-field-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-field-password {
  flex: 1;
}

.auth-link-small {
  font-size: 0.85rem;
  color: #9ec6ff;
  text-decoration: none;
  white-space: nowrap;
}
.auth-link-small:hover {
  text-decoration: underline;
}

/* Remember me checkbox */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #dde5f1;
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Primary button */
.auth-button-primary {
  margin-top: 1.4rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  background: #ffb400;
  color: #141414;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.auth-button-primary:hover {
  background: #ffa000;
  transform: translateY(-1px);
}

/* Footer */
.auth-footer-text {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #c6d2e0;
  text-align: center;
}

.auth-link {
  color: #ffdf7a;
  text-decoration: none;
}

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

.turnstile-wrap { 
  margin: 16px 0; 
}




/* Small screens: stack password + forgot link */
@media (max-width: 520px) {
  .auth-field-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}
