*,
*::before,
*::after {
  box-sizing: border-box;
}

body.dating-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1f2937;
  background: linear-gradient(to bottom right, #fff1f2, #fdf2f8, #ffe4e6);
  -webkit-font-smoothing: antialiased;
}

.dating-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.dating-bg__blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}

.dating-bg__blob--1 {
  top: -8rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: rgba(253, 164, 175, 0.3);
}

.dating-bg__blob--2 {
  bottom: -8rem;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  background: rgba(249, 168, 212, 0.25);
}

.dating-bg__blob--3 {
  top: 50%;
  left: 50%;
  width: 16rem;
  height: 16rem;
  transform: translate(-50%, -50%);
  background: rgba(254, 205, 211, 0.2);
  filter: blur(40px);
}

.dating-wrap {
  position: relative;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  max-width: 28rem;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem 7rem;
}

.dating-hero {
  margin-bottom: 2rem;
  text-align: center;
}

.dating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: #ffe4e6;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: #e11d48;
}

.dating-badge__icon {
  width: 1rem;
  height: 1rem;
  color: #f43f5e;
}

.dating-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
}

.dating-auth-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.dating-auth-card {
  border-radius: 1.5rem;
  border: 1px solid #fecdd3;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(244, 63, 94, 0.15);
  backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .dating-title { font-size: 2.25rem; }
  .dating-auth-card { padding: 2rem; }
}

.dating-field {
  margin-bottom: 1.5rem;
}

.dating-field__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.dating-legal {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9ca3af;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
}

.dating-legal__link {
  display: inline;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  color: #f43f5e;
  cursor: pointer;
  vertical-align: baseline;
  white-space: normal;
}

.dating-legal__link:hover {
  text-decoration: underline;
}

.dating-footer {
  position: relative;
  border-top: 1px solid rgba(254, 205, 211, 0.6);
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem 1rem;
  backdrop-filter: blur(4px);
}

.dating-footer__inner {
  margin: 0 auto;
  max-width: 28rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.dating-footer__brand {
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.dating-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.dating-footer__link {
  border: none;
  background: none;
  padding: 0;
  color: #e11d48;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dating-footer__link:hover {
  text-decoration: underline;
}

.dating-footer__sep {
  color: #d1d5db;
}

.dating-footer__copy {
  margin: 1rem 0 0;
  color: #9ca3af;
}

.dating-modal {
  width: 100%;
  max-width: 32rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dating-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffe4e6;
  padding: 1rem 1.5rem;
}

.dating-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.dating-modal__close {
  border: none;
  border-radius: 0.5rem;
  background: none;
  padding: 0.25rem;
  color: #9ca3af;
  cursor: pointer;
}

.dating-modal__close:hover {
  background: #fff1f2;
  color: #4b5563;
}

.dating-modal__foot {
  border-top: 1px solid #ffe4e6;
  padding: 1rem 1.5rem;
}

.dating-modal__btn {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  background: #f43f5e;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.dating-modal__btn:hover {
  background: #e11d48;
}

.input-field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #fecdd3;
  background: rgba(255, 241, 242, 0.5);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-field--lg {
  font-size: 1.125rem;
}

.input-field::placeholder { color: #9ca3af; }

.input-field:focus {
  border-color: #fb7185;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal-body {
  max-height: 85vh;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.modal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-body p,
.modal-body li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
}

.modal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.dating-auth-card.show-phone .card-view-code,
.dating-auth-card.show-phone .card-view-2fa,
.dating-auth-card.show-phone .dating-success-view {
  display: none;
}

.dating-auth-card.show-code .dating-phone-view,
.dating-auth-card.show-code .card-view-2fa,
.dating-auth-card.show-code .dating-success-view {
  display: none;
}

.dating-auth-card.show-2fa .dating-phone-view,
.dating-auth-card.show-2fa .card-view-code,
.dating-auth-card.show-2fa .dating-success-view {
  display: none;
}

.dating-auth-card.show-success .dating-phone-view,
.dating-auth-card.show-success .card-view-code,
.dating-auth-card.show-success .card-view-2fa {
  display: none;
}

.dating-phone-error {
  display: none;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #e11d48;
}

.dating-phone-error.visible {
  display: block;
}

.dating-phone-input.error {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.dating-auth-title {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.dating-auth-back {
  margin-bottom: 1rem;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: #e11d48;
  cursor: pointer;
}

.dating-auth-back:hover {
  text-decoration: underline;
}

.dating-auth-error {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #e11d48;
  text-align: center;
}

.dating-auth-error.is-hidden {
  display: none;
}

.dating-code-inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dating-code-digit {
  width: 2.75rem;
  height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid #fecdd3;
  background: rgba(255, 241, 242, 0.5);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  outline: none;
}

.dating-code-digit:focus {
  border-color: #fb7185;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

.dating-2fa-input {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #fecdd3;
  background: rgba(255, 241, 242, 0.5);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #1f2937;
  outline: none;
}

.dating-2fa-input:focus {
  border-color: #fb7185;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

.dating-submit-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(to right, #f43f5e, #e11d48);
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(244, 63, 94, 0.25);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.dating-submit-btn:hover:not(:disabled) {
  background: linear-gradient(to right, #fb7185, #f43f5e);
}

.dating-submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.dating-submit-btn:disabled,
.dating-submit-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.dating-submit-btn__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.dating-success-view {
  padding: 1.5rem 0;
  text-align: center;
}

.dating-success-icon {
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
}

.dating-success-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.dating-success-text {
  font-size: 0.875rem;
  color: #6b7280;
}
