/* ==========================================================================
   CoordinateWith.Me - Authentication Stylesheet
   Scope: Login, Registration, Password Reset, Check Email, Setup Password
   ========================================================================== */

/* Outer Centered Container */
.auth-card-container {
  max-width: 480px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.auth-card-container.auth-card-container-wide {
  max-width: 520px;
}

/* Glass Card Panel */
.auth-card {
  padding: 2.5rem 2rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .auth-card-container {
    margin: 1.5rem auto;
    padding: 0 0.75rem;
  }
  
  .auth-card {
    padding: 2rem 1.25rem !important;
    border-radius: 16px !important;
  }
}

/* Form Headings */
.auth-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .auth-title {
    font-size: 1.5rem;
  }
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Password Row (Label + Forgot Link) */
.auth-password-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.auth-password-label-row .form-label {
  margin-bottom: 0;
}

.auth-forgot-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: underline;
}

.auth-forgot-link:hover {
  color: var(--color-primary-hover);
}

/* Checkbox Alignment */
.auth-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.auth-checkbox-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

/* Full-width Submit Buttons */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  font-size: 1.05rem;
  justify-content: center;
  margin-top: 1.5rem;
  text-decoration: none;
}

.auth-submit-btn[style*="display: none"],
.auth-submit-btn.btn-hidden,
.auth-submit-btn[hidden] {
  display: none !important;
}


.auth-submit-btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Two-column Name Row (Registration) */
.register-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .register-name-row {
    grid-template-columns: 1fr;
  }
}

/* Readonly Input State */
.auth-input-readonly {
  background: rgba(0, 0, 0, 0.05) !important;
  cursor: not-allowed !important;
}

/* Terms & Early Preview Agreements */
.auth-terms-group {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.2rem;
}

.auth-terms-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.auth-terms-item:last-child {
  margin-bottom: 0;
}

.auth-terms-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-terms-label {
  font-size: 0.88rem;
  color: var(--color-text-primary);
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
  margin: 0;
}

.auth-terms-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ReCAPTCHA Wrapper */
.auth-recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

/* Bottom Footer Links */
.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.auth-footer-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

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

/* Auth Notice / Confirmation Elements (e.g. Check Email) */
.auth-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(211, 84, 0, 0.12);
  border: 2px solid var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.auth-icon-badge svg {
  width: 2.2rem;
  height: 2.2rem;
}

.auth-email-highlight {
  color: var(--color-text-primary);
  font-weight: 700;
}

.auth-steps-panel {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: left;
}

.auth-steps-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-steps-title svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-primary);
}

.auth-steps-list {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

