/* === Remeet Auth Page Styles === */

.auth-page {
  min-height: 100vh;
  background: var(--color-bg-main);
}

/* ═══════════════════════════════ */
/* LAYOUT (2-column split)          */
/* ═══════════════════════════════ */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Left: Brand ── */
.auth-brand {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 60px;
}

.auth-brand__content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.auth-brand__logo {
  font-size: 28px;
  font-weight: var(--weight-bold);
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 48px;
}

.auth-brand__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.auth-brand__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.auth-brand__particles {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(201, 169, 110, 0.15) 0%, transparent 50%);
}

/* ── Right: Form ── */
.auth-form-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  max-width: 560px;
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
}

/* ── Mobile: stack vertically ── */
@media (max-width: 767px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-brand {
    padding: 40px 24px;
    min-height: auto;
    flex: none;
  }

  .auth-brand__title {
    font-size: 24px;
  }

  .auth-brand__logo {
    margin-bottom: 24px;
  }

  .auth-form-area {
    flex: 1;
    max-width: 100%;
    padding: 32px 20px;
  }
}

@media (max-width: 767px) {
  .auth-brand {
    display: none;
  }

  .auth-form-area {
    padding-top: 60px;
  }

  .auth-form-area::before {
    content: 'Remeet';
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: var(--weight-bold);
    color: var(--color-primary);
  }
}

/* ═══════════════════════════════ */
/* AUTH CARD                        */
/* ═══════════════════════════════ */
.auth-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
}

.auth-card__title {
  font-size: 24px;
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 32px;
}

/* ═══════════════════════════════ */
/* FORM FIELDS                      */
/* ═══════════════════════════════ */
.auth-field {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-small);
  font-size: 15px;
  background: var(--color-bg-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 107, 0.1);
}

.auth-input::placeholder {
  color: #BBB;
}

.auth-input--error {
  border-color: #C0392B;
}

/* Password toggle */
.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .auth-input {
  padding-right: 44px;
}

.auth-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-sub);
  padding: 4px;
}

.auth-toggle-pw:hover {
  color: var(--color-primary);
}

/* ═══════════════════════════════ */
/* ERROR                            */
/* ═══════════════════════════════ */
.auth-error {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-small);
  background: #FDF2F2;
  color: #C0392B;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-error--visible {
  display: block;
}

/* ═══════════════════════════════ */
/* SUBMIT BUTTON                    */
/* ═══════════════════════════════ */
.auth-submit {
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ═══════════════════════════════ */
/* DIVIDER                          */
/* ═══════════════════════════════ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.auth-divider span {
  font-size: 13px;
  color: var(--color-text-sub);
}

/* ═══════════════════════════════ */
/* SOCIAL LOGIN BUTTONS             */
/* ═══════════════════════════════ */
.auth-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-small);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.auth-social--kakao {
  background: #FEE500;
  color: #191919;
}

.auth-social--kakao:hover {
  background: #F5DC00;
}

.auth-social--google {
  background: var(--color-white);
  color: var(--color-text);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.auth-social--google:hover {
  background: #F8F8F8;
}

/* ═══════════════════════════════ */
/* SWITCH (login ↔ register)        */
/* ═══════════════════════════════ */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-sub);
  margin-top: 24px;
}

.auth-switch__link {
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ═══════════════════════════════ */
/* CONFIRM EMAIL                    */
/* ═══════════════════════════════ */
.auth-confirm {
  text-align: center;
  padding: 20px 0;
}

.auth-confirm svg {
  color: var(--color-accent-warm);
  margin-bottom: 20px;
}

.auth-confirm__title {
  font-size: 20px;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
}

.auth-confirm__text {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.auth-confirm__hint {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

/* ═══════════════════════════════ */
/* FOOTER TEXT                      */
/* ═══════════════════════════════ */
.auth-footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 24px;
}

.auth-footer-text a {
  color: var(--color-text-sub);
  text-decoration: underline;
}

.auth-footer-text a:hover {
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════ */
/* Phase 12-5: 약관 동의 체크박스                                    */
/* ═══════════════════════════════════════════════════════════════ */

.auth-consent {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: #faf7f0;
  border: 1px solid #f3ebd9;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-consent__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}

.auth-consent__item input { display: none; }

.auth-consent__check {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c8baa6;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: all 0.15s ease;
  background: #fff;
}

.auth-consent__item input:checked + .auth-consent__check {
  background: #c8a060;
  border-color: #c8a060;
}

.auth-consent__item input:checked + .auth-consent__check::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.auth-consent__text {
  color: #3a3530;
  flex: 1;
}

.auth-consent__text strong {
  color: #2a2622;
  font-weight: 600;
}

.auth-consent__text small {
  color: #8a7b5c;
  font-size: 11px;
}

.auth-consent__link {
  color: #c8a060;
  text-decoration: underline;
  font-weight: 600;
}

.auth-consent__link:hover { color: #b08850; }

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══ 재동의 모달 (기존 사용자) ═══ */
.consent-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.consent-modal {
  background: #fff;
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.consent-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: #2a2622;
  margin: 0 0 8px;
}

.consent-modal__desc {
  font-size: 13px;
  color: #6b6158;
  margin: 0 0 20px;
  line-height: 1.6;
}

.consent-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #faf7f0;
  border-radius: 10px;
}

.consent-modal__submit {
  width: 100%;
  padding: 14px;
  background: #c8a060;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.consent-modal__submit:hover { background: #b08850; }
.consent-modal__submit:disabled { background: #c8baa6; cursor: not-allowed; }

.consent-modal__skip {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: #8a7b5c;
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
}
.consent-modal__skip:hover { color: #3a3530; }
