@import url('https://fonts.googleapis.com/css2?family=Borel&family=Pacifico&display=swap');

.login-page {
  min-height: 100vh;
  background: #fff;
}

.login-page__container,
.login-page__row {
  min-height: 100vh;
}

/* Left column — collage + privacy merged */
.login-page__left {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: url('../images/bg-left.png') no-repeat center top / cover;
}

.login-page__left-visual {
  position: relative;
  z-index: 9;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Collage — sits on bottom; top rows clip when height is tight */
.login-collage {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-height: 100%;
}

.login-collage__inner {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: flex-end;
  width: 130%;
  margin-bottom: 79px;
  margin-left: -8%;
  transform: rotate(-8deg);
  transform-origin: center bottom;
}

.login-collage__rows {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.login-scroll-row {
  overflow: hidden;
  width: 100%;
}

.login-scroll-row__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: login-scroll-forward 28s linear infinite;
}

.login-scroll-row--reverse .login-scroll-row__track {
  animation-name: login-scroll-reverse;
}

@keyframes login-scroll-forward {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes login-scroll-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.login-collage__cell {
  flex-shrink: 0;
  width: 125px;
  height: 150px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.login-collage__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-privacy {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  width: 100%;
  margin-top: -100px;
  padding: 2.5rem var(--page-gutter-x) 17px 52px;
  background: url('../images/Blur.png') no-repeat center / cover;
}

.login-privacy__heart-row {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  width: 100%;
}

.login-privacy__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.login-privacy__heart {
  display: block;
  width: 58px;
  height: 79px;
  object-fit: contain;
  transform: rotate(8deg);
}

.login-privacy__content {
  width: 100%;
  max-width: none;
}

.login-privacy__slide {
  animation: login-privacy-fade 0.45s ease;
}

@keyframes login-privacy-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-privacy__emoji {
  display: block;
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1;
}

.login-privacy__title {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.75rem;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #1b1b1b;
}

.login-privacy__text {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: #73686a;
}

.login-privacy__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 50px;
}

.login-privacy__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.login-privacy__dot.is-active {
  width: 28px;
  background: #fcddd5;
}

.login-privacy__copy {
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 57px;
  font-size: 14px;
  font-weight: 500;
  color: #1b1b1b;
}

/* Right column — scrollable form, footer stuck bottom-right */
.login-page__right {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.login-page__right-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
  padding: 2rem 52px 17px var(--page-gutter-x);
}

.login-page__right-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.login-form {
  --login-form-field-width: 362px;

  width: 100%;
  margin: 83px auto 0;
}

.login-form__head {
  margin-bottom: 20px;
  text-align: center;
}

.login-form__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-form__mobile-logo {
  display: none;
}

.login-form__hero {
  width: 100%;
}

.login-form__hero-row {
  width: 100%;
  margin: 0;
}

.login-form__top,
.login-form__bottom {
  width: 100%;
}

.login-form__hero-photo-col {
  display: none;
}

.login-form__hero-photo {
  display: none;
}

.login-form__logo {
  display: block;
  width: 191px;
  height: 50px;
  object-fit: contain;
}

.login-form__title {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 60px;
  color: var(--color-text);
}

.login-form__title-accent {
  font-family: 'Borel', cursive;
  font-size: 36px;
  font-weight: 400;
  color: #d35400;
}

.login-form__subtitle {
  margin: 0 auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-muted);
}

.login-form__fields,
.login-form__divider,
.login-form__social {
  width: var(--login-form-field-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.login-form__fields {
  margin-bottom: 0;
}

.login-form__label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
  text-align: left;
}

.login-form__field {
  margin-bottom: 24px;
}

.login-form__field .login-form__phone {
  margin-bottom: 0;
}

.login-form__field.has-error .login-form__phone {
  border-color: #b94a48;
  background: #fff;
}

.login-form__error {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #b94a48;
  text-align: right;
}

.login-form__form-error {
  margin: -15px 0 1rem;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #b94a48;
  text-align: right;
}

.apple-signin-callback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 14px;
  color: var(--color-text);
}

.login-form__phone {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  margin-bottom: 1.25rem;
  border: 1px solid #195c93;
  border-radius: 10px;
  background: #f7fdff;
  overflow: hidden;
}

.login-form__dial {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-right: 1px solid rgba(25, 92, 147, 0.2);
}

.login-form__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  outline: none;
}

.login-form__phone--email .login-form__input {
  padding-left: 16px;
}

.login-form__submit {
  display: block;
  width: var(--login-form-field-width);
  max-width: 100%;
  height: 46px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-form__submit:hover {
  background: #e01a6d;
}

.login-form__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px auto;
}

.login-form__divider-line {
  flex: 1;
  height: 1px;
  background: #195c93;
  opacity: 0.35;
}

.login-form__divider-text {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 600;
  color: #34789b;
}

.login-form__social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.login-form__social-btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 107px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #131314;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.login-form__social-btn:hover {
  opacity: 0.88;
}

.login-form__social-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.login-form__signup {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.login-form__signup-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-form__signup-link:hover {
  color: #e01a6d;
}

/* Signup page */
.login-form--signup .login-form__title {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.signup-tabs {
  display: flex;
  gap: 0;
  width: var(--login-form-field-width);
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 4px;
  border: 0.5px solid #195c93;
  border-radius: 10px;
  background: #f7fdff;
}

.signup-tabs__btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.signup-tabs__btn.is-active {
  background: #34789b;
  color: #fff;
}

.signup-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: var(--login-form-field-width);
  max-width: 100%;
  margin: 0 auto 30px;
}

.signup-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #131314;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.signup-social__btn:hover {
  opacity: 0.88;
}

.signup-social__icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.signup-agree {
  max-width: var(--login-form-field-width);
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text);
}

.signup-agree__link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-agree__link:hover {
  color: #e01a6d;
}

/* Verify account */
.verify-form {
  --login-form-field-width: 362px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.verify-form__head {
  width: 100%;
  margin-bottom: 0;
}

.verify-form__topbar {
  display: none;
  width: 100%;
}

.verify-form__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.verify-form__back-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.verify-form__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.verify-form__title {
  margin: 0 0 30px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  text-align: center;
}

.verify-form__text {
  width: var(--login-form-field-width);
  max-width: 100%;
  margin: 0 auto 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--color-muted);
}

.verify-form__phone {
  color: var(--color-primary);
  font-weight: 500;
}

.verify-code {
  display: flex;
  width: var(--login-form-field-width);
  max-width: 100%;
  height: 52px;
  margin: 0;
  border: 0.5px solid #195c93;
  border-radius: 10px;
  background: #f7fdff;
  overflow: hidden;
}

.verify-form__field {
  width: var(--login-form-field-width);
  max-width: 100%;
  margin: 0 auto 20px;
}

.verify-form__field .verify-form__error {
  margin: 2px 0 0;
}

.verify-code__digit {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  border-right: 0.5px solid #195c93;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  outline: none;
}

.verify-code__digit:last-child {
  border-right: none;
}

.verify-code__digit:focus {
  background: rgba(25, 92, 147, 0.06);
}

.verify-code.has-error {
  border-color: #b94a48;
}

.verify-code.has-error .verify-code__digit {
  border-right-color: #b94a48;
}

.verify-code.has-error .verify-code__digit:last-child {
  border-right: none;
}

.verify-resend {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--color-muted);
}

.verify-resend__time {
  color: var(--color-primary);
  font-weight: 500;
}

.verify-resend__link {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.verify-form__footer {
  width: var(--login-form-field-width);
  max-width: 100%;
  margin: 0 auto;
}

.verify-form__error {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #b94a48;
  text-align: right;
}

.verify-actions {
  display: flex;
  gap: 20px;
  width: 100%;
  margin: 0;
}

.verify-actions__btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.verify-actions__btn--back {
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}

.verify-actions__btn--back:hover {
  background: rgba(255, 32, 122, 0.06);
  color: var(--color-primary);
}

.verify-actions__btn--next {
  border: none;
  background: var(--color-primary);
  color: #fff;
}

.verify-actions__btn--next:hover {
  background: #e01a6d;
}

.login-form__footer {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-self: flex-end;
  justify-content: flex-end;
  gap: 1rem 1.75rem;
  width: auto;
  max-width: none;
  margin-top: 0;
  padding-top: 1.25rem;
}

.login-form__footer-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.login-form__footer-link:hover {
  color: var(--color-primary);
}

@media (max-width: 991.98px) {
  .login-page {
    background: #fff url('../images/mobile_bg.png') no-repeat center top / cover;
  }

  .login-page--signup {
    background: #fff url('../images/signup_mobile_bg.png') no-repeat center top / cover;
  }

  .login-page__left-col {
    display: none;
  }

  .login-page__split-col.login-page__right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .login-page__right {
    background: transparent;
  }

  .login-page__right-inner {
    height: auto;
    min-height: auto;
    padding: 0;
  }

  .login-form__footer {
    display: none;
  }
}

@media (min-width: 992px) {
  .login-page__row {
    flex-wrap: nowrap;
  }

  .login-page__split-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .login-form__hero-text {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 599.98px) {
  .login-page__left-col,
  .login-page__left {
    display: none;
  }

  .login-page__right {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    background: transparent;
  }

  .login-page__right-inner {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    padding: 20px;
  }

  .login-form__top {
    padding: 0;
  }

  .login-form__bottom {
    width: 425px;
    max-width: 100%;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .login-page__right-scroll {
    flex: none;
    overflow: visible;
    align-items: stretch;
  }

  .login-form {
    --login-form-field-width: 425px;
    max-width: 100%;
    margin: 0 auto;
  }

  .login-form__head {
    text-align: left;
  }

  .login-form__hero-text {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding-bottom: 25px;
  }

  .login-form__hero-photo-col {
    display: block;
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .login-form__hero-row {
    --bs-gutter-x: 12px;
    align-items: flex-end;
  }

  .login-form__hero-photo {
    display: block;
    height: auto;
    border-radius: 10px;
    width: 100%;
  }

  .login-form__brand {
    display: none;
  }

  .login-form__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.25;
    text-align: left;
  }

  .login-form__title-accent {
    font-size: 28px;
  }

  .login-form--signup .login-form__title {
    margin-top: 114px;
    font-size: 28px;
    line-height: 40px;
    text-align: left;
  }

  .login-form--signup .login-form__title-accent {
    font-size: 28px;
  }

  .login-form__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 24px;
    text-align: left;
  }

  .login-form__social {
    gap: 12px;
  }

  .login-form__social-btn {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .login-form__signup {
    margin-bottom: 20px;
  }

  .verify-form {
    --login-form-field-width: 100%;
    align-items: stretch;
  }

  .verify-form__topbar {
    display: flex;
    align-items: center;
    margin-bottom: 26px;
    margin-top: 34px;
  }

  .verify-form__head {
    text-align: left;
  }

  .verify-form__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 40px;
    text-align: left;
  }

  .verify-form__text {
    text-align: left;
  }

  .verify-actions__btn--back {
    display: none;
  }

  .verify-actions__btn--next {
    flex: 1;
    width: 100%;
  }
}

.firebase-recaptcha {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
