@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #950057;
  --color-secondary-gray: #f5f6f6;
  --color-text-primary: #ff3399;
  --color-overlay: #333333;
  --color-error: #f87272;
  --color-cancel: #dadada;
  --ma-gray: #989899;
  --ma-gray-900: #121212;
  --gradient-ma-80: linear-gradient(to bottom, rgba(237, 37, 128, 0.8), rgba(242, 110, 87, 0.8));
  --font-sans: 'Figtree', system-ui, sans-serif;
  --font-proxima: 'Montserrat', 'Figtree', system-ui, sans-serif;
  --header-height: 74px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Layout shell — mirrors LayoutWrapper */
.layout {
  width: 100%;
  min-height: 100vh;
}

.layout--gradient {
  background: var(--gradient-ma-80);
}

.layout__frame {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-width: 375px;
  max-width: 895px;
  min-height: 100vh;
  background: #fff;
  font-family: var(--font-proxima);
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  padding: 1.25rem;
  background: #fff;
}

.site-header__inner {
  width: 100%;
  max-width: 895px;
  margin: 0 auto;
  text-align: center;
}

.site-header__logo {
  display: inline-block;
  height: 34px;
  width: 145px;
  transition: opacity 0.3s ease;
}

.site-header__logo:hover {
  opacity: 0.8;
}

.feedback-btn {
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 50;
  cursor: pointer;
  border-radius: 9999px;
  background: rgba(212, 33, 40, 0.8);
  padding: 0.5rem 1rem;
  font-family: var(--font-proxima);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.feedback-btn:hover {
  color: #fbcfe8;
}

.layout__main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: #fff;
  color: #000;
  padding: 0 0.25rem;
}

.layout__main--with-header {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* WrapperCommon / Wrapper — mirrors auth page wrappers */
.wrapper-common {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 2.5rem 1rem 5rem;
  font-family: var(--font-proxima);
}

.wrapper-common--login {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--gradient-ma-80);
  color: #fff;
}

.wrapper--forgot {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 2.5rem 1.25rem;
  background: #fff;
}

/* Landing — mirrors Landing.tsx (no LayoutWrapper) */
.page--landing {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-sans);
}

.landing {
  display: flex;
  width: 100%;
  flex: 1;
  justify-content: center;
  background: #fff;
  color: #000;
}

.landing__inner {
  display: flex;
  width: 100%;
  min-width: 375px;
  max-width: 32rem;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

.landing__logo {
  margin-top: 7rem;
  height: 34px;
  width: 145px;
}

.landing__login-wrap {
  margin-top: 10rem;
  display: flex;
  justify-content: center;
}

.landing__signup {
  margin-top: 4rem;
  width: 100%;
  max-width: 340px;
}

.signup-card {
  border-radius: 1rem;
  background: var(--gradient-ma-80);
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.signup-card__text {
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.625;
  color: #fff;
}

.signup-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-form__field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.signup-form__success {
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  text-align: center;
}

.signup-form__success-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.signup-form__success-text {
  margin: 0.25rem 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* Buttons — mirrors ButtonCommon */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 21px;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:disabled {
  cursor: not-allowed;
}

.btn--session {
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
}

.btn--session:hover:not(:disabled) {
  opacity: 0.6;
}

.btn--session:disabled {
  opacity: 0.6;
}

.btn--dark {
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
}

.btn--dark:hover:not(:disabled) {
  background: var(--color-secondary-gray);
  color: var(--color-primary);
}

.btn--dark:disabled {
  background: var(--color-secondary-gray);
  color: #d1d5db;
}

.btn--w300 {
  width: 300px;
  height: 50px;
}

.btn--full {
  width: 100%;
  height: 53px;
}

.btn--lowercase {
  text-transform: none;
}

.btn__spinner {
  width: 1.5rem;
  height: 1.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Inputs — mirrors FormInput */
.input {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 16px;
  color: #000;
}

.input--rounded {
  height: 46px;
  border: 1px solid rgba(239, 46, 125, 0.3);
  border-radius: 0.5rem;
  padding: 0 1rem;
  font-size: 15px;
  color: var(--ma-gray-900);
}

.input--rounded::placeholder {
  color: rgba(152, 152, 153, 0.6);
}

.input--rounded:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(149, 0, 87, 0.2);
}

.input--bordered {
  margin-bottom: 0.5rem;
  height: auto;
  border: 1px solid #94a3b8;
  border-radius: 0;
  padding: 0.5rem 1rem;
}

.input-wrap {
  position: relative;
}

.input-wrap__toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
  border: none;
  background-color: transparent;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
}

.input-wrap__toggle--closed {
  background-image: url('/assets/images/icon/i-close-eye.svg');
}

.input-wrap__toggle--open {
  background-image: url('/assets/images/icon/i-open-eye.svg');
}

/* TitlePage */
.page-title {
  width: 100%;
}

.page-title--spaced > * + * {
  margin-top: 1.5rem;
}

.page-title__heading {
  margin: 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
}

.page-title__heading--pink {
  color: var(--color-text-primary);
}

.page-title__subheading {
  margin: 0;
  font-size: 17px;
  line-height: 21px;
  font-weight: 700;
}

.page-title__subheading--gray {
  color: var(--color-overlay);
}

/* Auth forms — mirrors LoginContent / ForgotPasswordContent */
.auth-form {
  width: 100%;
}

.auth-form--login {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #000;
}

.auth-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form__link {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
}

.auth-form__link:hover {
  color: #fff;
}

.auth-form__link--pink {
  color: #ed2580;
  font-weight: 700;
}

.auth-form__link--pink:hover {
  color: #ed2580;
}

.auth-form__back {
  margin-top: 5rem;
  text-align: center;
}

.turnstile-placeholder {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Toast / ErrorMessage */
.toast,
.error-message {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background: var(--color-error);
  padding: 0.75rem;
  color: #000;
  font-size: 16px;
  line-height: 1.25;
}

.toast.is-visible,
.error-message.is-visible {
  display: flex;
}

.toast__icon,
.error-message .toast__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #000;
}

.toast__icon svg,
.error-message .toast__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.toast__text,
.error-message span:not(.toast__icon) {
  flex: 1;
}

.error-message--inline {
  border-radius: 0.5rem;
  background: rgba(248, 114, 114, 0.1);
  color: var(--color-error);
  text-align: center;
  padding: 0.75rem;
}

.error-message--inline.is-visible {
  display: block;
}

.error-message--inline p {
  margin: 0;
  font-size: 13px;
}

/* Utility */
.hidden {
  display: none !important;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-20 {
  margin-top: 5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
