/**
 * Auth modals – Login, Sign Up, Reset
 * Dark box, white text, email-only (no social login)
 */

body.aie-auth-modal-active {
  overflow: hidden;
}

.aie-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.3s, opacity 0.3s;
}

.aie-auth-modal.aie-auth-modal-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.aie-auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.aie-auth-modal-box {
  position: relative;
  background: #000;
  color: #fff;
  padding: 70px 80px 80px;
  max-width: 480px;
  width: 100%;
  border-radius: 0;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.aie-auth-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: none !important;
  border: none !important;
  padding: 0;
}

.aie-auth-modal-close svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.aie-auth-modal-title {
  font-size: 48px;
  line-height: 48px;
  margin-bottom: 24px;
  margin-top: 10px;
  padding-bottom: 0;
  padding-top: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-impact), sans-serif;
  font-style: italic;
  font-weight: 400;
}

.aie-auth-modal-switch {
  margin: 0 0 32px;
  text-align: center;
  font-size: 18px;
  color: #fff;
}

.aie-auth-modal-switch a {
  color: #8e3434;
}

.aie-auth-modal-switch a:hover {
  color: #a04040;
}

.aie-auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.aie-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  font-family: var(--font-helvetica-light, "Helvetica Neue", Helvetica, sans-serif);
}

.aie-auth-btn:hover {
  opacity: 0.9;
  color: #fff;
}

.aie-auth-btn-google {
  background: #fff;
  color: #333;
}

.aie-auth-btn-facebook {
  background: #1877f2;
  color: #fff;
}

.aie-auth-btn-email {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.aie-auth-btn-email:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.aie-auth-btn-submit {
  background: #8e3434;
  color: #fff;
}

.aie-auth-btn-submit:hover {
  background: #a04040;
}

.aie-auth-btn-icon {
  font-weight: 700;
  font-size: 18px;
}

.aie-auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.aie-auth-divider::before,
.aie-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.aie-auth-divider span {
  padding: 0 12px;
}

.aie-auth-form-field {
  margin: 0 0 25px;
}

.aie-auth-form-field label {
  display: block;
  margin-bottom: 1px;
  font-size: 15px;
  font-weight: 400;
  line-height: 15px;
  color: #fff;
  font-family: var(--font-helvetica-light, "Helvetica Neue", Helvetica, sans-serif);
}

.aie-auth-form-field input {
  width: 100%;
  padding: 11px 0px;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-width: 0 0 1px 0 !important;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-sizing: border-box;
  font-family: var(--font-helvetica-light, "Helvetica Neue", Helvetica, sans-serif);
  font-weight: 400;
}

.aie-auth-form-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.aie-auth-form-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 1);
  background: none;
  border-style: solid;
  color: #fff;
}

.aie-auth-form-links {
  padding-bottom: 18px;
  padding-top: 13px;
  font-size: 16px;
  font-weight: 400;
  line-height: 17px;
  font-family: var(--font-body), sans-serif;
  margin-bottom: 0;
}

.aie-auth-form-links a {
  color: #fff;
  text-decoration: underline;
}

.aie-auth-form-links a:hover {
  opacity: 0.8;
}

.aie-auth-disclaimer {
  margin-top: 48px;
  margin-bottom: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 1);
  line-height: 1.6;
  text-align: center;
  font-weight: 400;
  font-family: "din-next-w01-light", sans-serif;
  padding-left: 10px;
  padding-right: 10px;
}

.aie-auth-success-msg {
  margin: 0;
  padding: 20px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.aie-auth-error {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  font-size: 14px;
  border-radius: 4px;
}

.aie-auth-error a {
  color: #ff6b6b;
}

/* Reset password modal – match screenshot */
#aie-reset-modal .aie-auth-modal-overlay {
  background: #000;
}

.aie-auth-modal-reset .aie-auth-modal-title {
  text-align: center;
  margin-bottom: 16px;
}

.aie-reset-instruction {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 60px;
  font-family: var(--font-helvetica-light, "Helvetica Neue", Helvetica, sans-serif);
  font-weight: 400;
}

.aie-auth-modal-reset .aie-reset-submit {
  display: block;
  width: 100%;
  margin-top: 50px;
}

.aie-reset-back {
  text-align: center;
  margin: 0;
  font-size: 15px;
}

.aie-reset-back a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.aie-reset-back a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .aie-auth-modal-box {
    padding: 30px 24px 30px;
  }

  .aie-auth-modal-title {
    font-size: 36px;
    line-height: 36px;
  }
  
}