/* Reusable auth form polish (layout only; no ID renames) */

.auth-card {
  max-width: 640px;
  margin: 24px auto;
  padding: 24px 20px 20px 20px;
  background: var(--sw-card);
  border-radius: 16px;
  border: 1px solid var(--sw-soft);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.auth-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 12px 0;
  letter-spacing: .2px;
  color: #0a2540;
  text-align: center;
}


.auth-subtitle {
  font-size: 0.95rem;
  color: var(--sw-sub);
  margin: 4px 0 16px 0;
  text-align: center;
}





.auth-label {
  display: block;
  margin: 10px 0 6px 2px;
  font-weight: 600;
  color: #004080;
}

#register-form,
#login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

/* Stack on smaller screens */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}



/* Inputs (respect existing IDs; do not rename) */
#register-form input,
#register-form select,
#login-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--sw-soft);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  box-sizing: border-box;
}

#register-form input:focus,
#register-form select:focus,
#login-form input:focus {
  border-color: #a7c9ff;
  box-shadow: 0 0 0 3px rgba(63,131,248,.125);
}

/* Form footer links */
.form-links,
.auth-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.form-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #457b9d;
  color: white;
  background-color: #457b9d;
  font-size: .95rem;
  font-weight: 500;
  transition: background-color .2s, color .2s, transform .15s;
}
.form-links a:hover {
  background-color: #355e76;
  transform: translateY(-1px);
}

.forgot-password a {
  font-size: 1rem;
  color: #457b9d;
  text-decoration: none;
}
.forgot-password a:hover {
  color: #0056b3;
}

/* Terms line layout (kept ID/label) */
.terms-line {
  margin-top: 4px;
}

.terms-line label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--sw-sub);
}

.terms-line input[type="checkbox"] {
  margin-top: 2px;
}


/* Buttons reuse .button and .button-modern from shared css */

/* Optional: tiny polish for the URL preview box */
.url-preview { box-shadow: 0 6px 18px rgba(0,0,0,.06); }

