/* ========================================
   AInterior Auth Plugin Styles
   ======================================== */

/* CSS Variables */
:root {
  --white: #ffffff;
  --black: #121212;
  --black-50: #f2f2f2;
  --black-100: #e6e6e6;
  --black-200: #cccccc;
  --black-400: #999999;
  --red: #de3b3b;
  --red-50: #fef2f2;
  --red-100: #f8d3d3;
}

/* Base rem font-size (matching theme) */
html {
  font-size: 0.6944444444vw; /* 1rem = 10px at 1440px */
}

/* ========================================
   Auth Modal Specific Styles
   ======================================== */

/* Auth Modal Back Button */
.ainterior-auth-modal__back {
  position: absolute;
  top: 2rem;
  left: -6rem;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 11;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.ainterior-auth-modal__back:hover {
  opacity: 0.7;
}

.ainterior-auth-modal__back.is-visible {
  display: flex;
}

/* Auth Modal Body - Override universal modal body for auth specific needs */
#ainterior-auth-modal .modal__body {
  position: relative;
  padding: 2.4rem;
  align-items: center;
  min-height: 50rem;
}

/* ========================================
   Auth Form Styles - Continue from here
   ======================================== */

.ainterior-auth-form {
  width: 100%;
  max-width: 41.6rem;
}

.ainterior-auth-form__content {
  padding: 6.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

/* Tab Navigation */
.ainterior-auth-tabs {
  background: var(--black-50);
  border-radius: 3.2rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 6.4rem;
  position: relative;
}

.ainterior-auth-tabs__tab {
  background: transparent;
  border: none;
  border-radius: 2.4rem;
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ainterior-auth-tabs__tab--active {
  background: var(--white);
}

.ainterior-auth-tabs__text {
  color: var(--black-400);
  text-align: left;
  font-family: "Manrope-SemiBold", sans-serif;
  font-size: 1.8rem;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 600;
  position: relative;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: color 0.3s ease;
}

.ainterior-auth-tabs__tab--active .ainterior-auth-tabs__text {
  color: var(--black);
}

/* Form Fields */
.ainterior-auth-form__form {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.ainterior-auth-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.ainterior-auth-form__field {
  border-radius: 1.6rem;
  border: 0.15rem solid var(--black-100);
  padding: 1.6rem 2rem;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 5.6rem;
  min-width: 40rem;
  position: relative;
  transition: border-color 0.3s ease;
}

.ainterior-auth-form__field:focus-within {
  border-color: var(--red);
}

.ainterior-auth-form__field--password {
  padding-right: 5.2rem;
}

.ainterior-auth-form__input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--black);
  text-align: left;
  font-family: "Manrope-Medium", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  position: relative;
  flex: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.ainterior-auth-form__input::placeholder {
  color: var(--black-200);
}

.ainterior-auth-form__input:focus::placeholder {
  opacity: 0.5;
}

.ainterior-auth-form__password-toggle {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-200);
  transition: color 0.3s ease;
}

.ainterior-auth-form__password-toggle:hover {
  color: var(--black);
}

.ainterior-auth-form__eye-icon {
  width: 2.4rem;
  height: 2.4rem;
}

/* Form Row (Remember Me + Forgot Password) */
.ainterior-auth-form__row {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  position: relative;
}

/* Checkbox Styles */
.ainterior-auth-form__checkbox {
  padding: 0.8rem 0;
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  justify-content: flex-start;
  flex: 1;
  height: 4rem;
  position: relative;
  cursor: pointer;
}

.ainterior-auth-form__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ainterior-auth-form__checkbox-custom {
  background: var(--black-50);
  border-radius: 0.4rem;
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.ainterior-auth-form__checkbox input[type="checkbox"]:checked + .ainterior-auth-form__checkbox-custom {
  background: var(--red);
}

.ainterior-auth-form__checkbox input[type="checkbox"]:checked + .ainterior-auth-form__checkbox-custom::after {
  content: '';
  width: 1.2rem;
  height: 1rem;
  border: 0.2rem solid var(--white);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  position: absolute;
  top: 0.4rem;
  left: 0.5rem;
}

.ainterior-auth-form__checkbox-text {
  color: var(--black);
  text-align: left;
  font-family: "Manrope-Medium", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 500;
  position: relative;
  flex: 1;
  min-height: 2.4rem;
}

.ainterior-auth-form__checkbox-text--remember-me {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ainterior-auth-form__checkbox-text a {
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.ainterior-auth-form__checkbox-text a:hover {
  opacity: 0.8;
}

/* Agreement Checkbox */
.ainterior-auth-form__agreement {
  align-self: stretch;
  height: auto;
  padding: 0.8rem 0;
}

.ainterior-auth-form__agreement .ainterior-auth-form__checkbox-text {
  line-height: 1.4;
}

/* Forgot Password Button */
.ainterior-auth-form__forgot-password {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.8rem 0;
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 4rem;
  position: relative;
  color: var(--red);
  text-align: right;
  font-family: "Manrope-Medium", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 500;
  min-height: 2.4rem;
  transition: opacity 0.3s ease;
}

.ainterior-auth-form__forgot-password:hover {
  opacity: 0.8;
}

/* Submit Button */
.ainterior-auth-form__submit {
  background: var(--red);
  border: none;
  border-radius: 4.8rem;
  padding: 1.6rem 3.2rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5.6rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.ainterior-auth-form__submit:hover:not(:disabled) {
  background: #c53030;
}

.ainterior-auth-form__submit:disabled,
.ainterior-auth-form__submit--disabled {
  background: var(--red-100);
  cursor: not-allowed;
  opacity: 0.6;
}

.ainterior-auth-form__submit {
  color: var(--white);
  text-align: center;
  font-family: "Manrope-Medium", sans-serif;
  font-size: 1.5rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   Success Message Styles
   ======================================== */

.ainterior-auth-success {
  position: relative;
  background: var(--white);
  border-radius: 3.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: unset;
  height: 100%;
}

.ainterior-auth-success__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: center;
  width: auto;
  position: relative;
}

.ainterior-auth-success__icon {
  width: 6.4rem;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.ainterior-auth-success__title {
  color: var(--black);
  text-align: center;
  font-family: "Manrope-SemiBold", sans-serif;
  font-size: 2.8rem;
  line-height: 120%;
  letter-spacing: -0.02em;
  font-weight: 600;
  position: relative;
  width: 36.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.ainterior-auth-success__message {
  color: var(--black);
  text-align: center;
  font-family: "Manrope-Regular", sans-serif;
  font-size: 1.5rem;
  line-height: 145%;
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.2rem 0 20.4rem 0;
}

/* ========================================
   Password Recovery Styles
   ======================================== */

.ainterior-auth-recovery {
  width: 100%;
  max-width: 41.6rem;
}

.ainterior-auth-recovery__content {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 41.6rem;
  position: relative;
  margin-bottom: 3.2rem;
}

.ainterior-auth-recovery__title {
  color: var(--black);
  text-align: left;
  font-family: "Manrope-SemiBold", sans-serif;
  font-size: 2.8rem;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 600;
  position: relative;
  width: 41.4rem;
  height: 4rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
}

.ainterior-auth-recovery__description {
  padding: 0 5.2rem 0 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  position: relative;
}

.ainterior-auth-recovery__description {
  color: var(--black);
  text-align: left;
  font-family: "Manrope-Regular", sans-serif;
  font-size: 1.5rem;
  line-height: 145%;
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
} 

@media screen and (max-width: 1089px) {
  .ainterior-auth-form__field {
    min-width: 100%;
  }
  .ainterior-auth-recovery__content {
    width: 100%;
  }
  .ainterior-auth-recovery__title {
    width: 100%;
  }
  .ainterior-auth-recovery__description {
    width: 100%;
  }
  .ainterior-auth-recovery {
    padding-top: 5.6rem;
  }
  .ainterior-auth-modal__back {
    left: 1.2rem;
  }
}