/* ═══════════════════════════════════════
   Creator Pay — Full-Screen Auth Layout
═══════════════════════════════════════ */
.auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
.auth-modal-overlay.open { display: flex; }

.auth-modal-box {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: 100%;
  min-height: 100vh;
}

/* ══════════════════════════════
   LEFT — Site Info
══════════════════════════════ */
.am-left {
  background: linear-gradient(150deg, #4f46e5 0%, #667eea 55%, #764ba2 100%);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.am-left::before {
  content: '';
  position: absolute;
  top: -90px; right: -90px;
  width: 340px; height: 340px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.am-left::after {
  content: '';
  position: absolute;
  bottom: -110px; left: -60px;
  width: 380px; height: 380px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

/* brand */
.am-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative; z-index: 1;
}
.am-logo-box {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.am-brand-name {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.4px;
}

/* middle content */
.am-left-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative; z-index: 1;
}

.am-headline h2 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.am-headline p {
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  max-width: 340px;
}

/* stats */
.am-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.am-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}
.am-stat-num {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.am-stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* features — compact checklist style */
.am-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.am-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}
.am-feature-icon {
  font-size: 15px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.am-feature-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.am-feature-text span { display: none; }

/* testimonial — compact */
.am-testimonial {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 14px 16px;
}
.am-stars { color: #fbbf24; font-size: 11px; letter-spacing: 2px; margin-bottom: 6px; }
.am-quote {
  font-size: 12.5px;
  color: rgba(255,255,255,.88);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 10px;
}
.am-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.am-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,#fbbf24,#f59e0b);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: white;
  flex-shrink: 0;
}
.am-author-info strong { display: block; font-size: 11.5px; font-weight: 700; color: #fff; }
.am-author-info span  { font-size: 10px; color: rgba(255,255,255,.55); }

/* trust footer */
.am-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative; z-index: 1;
}
.am-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,.62);
  font-weight: 600;
}

/* ══════════════════════════════
   RIGHT — Form
══════════════════════════════ */
.am-right {
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 44px 36px;
  position: relative;
}
.am-form-inner {
  width: 100%;
  max-width: 380px;
}

/* close */
.am-close {
  position: fixed;
  top: 18px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: white;
  border: 1.5px solid #e2e8f0;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.am-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

/* header */
.am-header { margin-bottom: 22px; }
.am-header h2 {
  font-size: 23px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
  letter-spacing: -0.3px;
}
.am-header p { font-size: 13px; color: #64748b; line-height: 1.55; }

/* tabs */
.am-tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 11px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: white;
}
.am-tab {
  flex: 1; padding: 10px;
  text-align: center;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  background: white; color: #64748b;
  border: none; font-family: inherit;
  transition: all .2s;
}
.am-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

/* messages */
.am-msg {
  font-size: 12.5px; font-weight: 600;
  text-align: center;
  border-radius: 9px;
  padding: 0; min-height: 0;
  display: none;
}
.am-msg:not(:empty) {
  display: block;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.am-msg.error   { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; }
.am-msg.success { color: #059669; background: #f0fdf4; border: 1px solid #a7f3d0; }

/* inputs */
.am-input-group {
  display: flex; flex-direction: column;
  gap: 5px; margin-bottom: 12px;
}
.am-input-group label {
  font-size: 11px; font-weight: 700;
  color: #475569;
  text-transform: uppercase; letter-spacing: .5px;
}
.am-label-row { display: flex; justify-content: space-between; align-items: center; }
.am-forgot { font-size: 11.5px; color: #667eea; text-decoration: none; font-weight: 600; }
.am-forgot:hover { text-decoration: underline; }
.am-input {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px; font-family: inherit;
  background: white; color: #0f172a;
  transition: all .2s; outline: none;
  box-sizing: border-box;
}
.am-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }
.am-pw-wrap { position: relative; }
.am-pw-wrap .am-input { padding-right: 42px; }
.am-toggle-pass {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 15px; padding: 0; line-height: 1;
}

/* submit */
.am-submit-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white; border: none; border-radius: 10px;
  font-size: 14.5px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: opacity .2s, transform .2s;
  margin-top: 4px;
  box-shadow: 0 5px 16px rgba(102,126,234,.32);
}
.am-submit-btn:hover { opacity: .92; transform: translateY(-1px); }
.am-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* switch */
.am-switch {
  text-align: center; margin-top: 15px;
  font-size: 13px; color: #64748b;
}
.am-switch a { color: #667eea; font-weight: 700; text-decoration: none; cursor: pointer; }
.am-switch a:hover { text-decoration: underline; }

/* security */
.am-security {
  text-align: center; margin-top: 16px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .7px; color: #94a3b8;
  text-transform: uppercase;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .am-left { padding: 36px 32px; }
  .am-headline h2 { font-size: 26px; }
}
@media (max-width: 768px) {
  .auth-modal-box { grid-template-columns: 1fr; }
  .am-left { display: none; }
  .am-right {
    padding: 52px 20px 36px;
    background: linear-gradient(160deg,#f0f4ff 0%,#f8fafc 100%);
    justify-content: flex-start;
    min-height: 100vh;
    overflow-y: auto;
  }
  .am-form-inner { max-width: 100%; }
  .am-close { top: 12px; right: 12px; }
  .am-input { font-size: 16px; /* prevent iOS zoom */ }
  .am-submit-btn { padding: 14px; font-size: 15px; min-height: 48px; }
  .am-tab { min-height: 44px; }
}
