/* ============================================
   LUMINARA — Auth Pages (Login / Join)
   ============================================ */

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

.header--auth {
  position: relative;
  background-color: var(--cream);
  border-bottom: 1px solid rgba(26, 71, 49, 0.08);
}

/* --- Auth Layout --- */
.auth {
  flex: 1;
  display: flex;
}

.auth__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: calc(100vh - 73px);
}

/* --- Decorative Panel --- */
.auth__panel {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.auth__panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 143, 113, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.auth__panel::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(163, 196, 163, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.auth__panel-content {
  position: relative;
  z-index: 1;
  max-width: 380px;
  text-align: center;
}

.auth__panel-icon {
  width: 64px;
  height: 64px;
  stroke: var(--sage-light);
  margin: 0 auto 32px;
  opacity: 0.7;
}

.auth__panel-content h2 {
  color: var(--cream);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.auth__panel-content p {
  color: var(--sage-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* Panel stats (join page) */
.auth__panel-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(163, 196, 163, 0.2);
}

.auth__panel-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth__panel-stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
}

.auth__panel-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* --- Form Side --- */
.auth__form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background-color: var(--cream);
}

.auth__form-container {
  width: 100%;
  max-width: 420px;
}

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

.auth__form-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--forest);
  margin-bottom: 8px;
}

.auth__form-header p {
  font-size: 0.9375rem;
  color: var(--medium-gray);
}

/* --- Form Elements --- */
.auth__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group__link {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--sage);
  transition: color 0.3s ease;
}

.form-group__link:hover {
  color: var(--forest);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group select {
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background-color: var(--off-white);
  border: 1px solid rgba(26, 71, 49, 0.12);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: var(--warm-gray);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107, 143, 113, 0.12);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A746B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Checkbox */
.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forest);
  cursor: pointer;
  flex-shrink: 0;
}

.form-group--checkbox label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--medium-gray);
  line-height: 1.5;
  cursor: pointer;
}

.form-group--checkbox label a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-group--checkbox label a:hover {
  color: var(--forest-dark);
}

/* Submit Button */
.auth__submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  margin-top: 8px;
  font-size: 0.9375rem;
}

/* --- Divider --- */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: rgba(26, 71, 49, 0.1);
}

.auth__divider span {
  font-size: 0.75rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --- Social Buttons --- */
.auth__social {
  display: flex;
  gap: 12px;
}

.auth__social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  background-color: var(--off-white);
  border: 1px solid rgba(26, 71, 49, 0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth__social-btn:hover {
  background-color: #eee9e0;
  border-color: rgba(26, 71, 49, 0.2);
}

/* --- Footer Text --- */
.auth__footer-text {
  text-align: center;
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.auth__footer-text a {
  color: var(--forest);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth__footer-text a:hover {
  color: var(--forest-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .auth__panel {
    padding: 48px 32px;
  }

  .auth__form-wrapper {
    padding: 48px 32px;
  }
}

@media (max-width: 768px) {
  .auth__split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth__panel {
    min-height: 240px;
    padding: 48px 24px;
  }

  .auth__panel-content h2 {
    font-size: 1.5rem;
  }

  .auth__panel-stats {
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .auth__form-wrapper {
    padding: 40px 24px;
  }

  .auth__form-header {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .auth__panel-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}
