/* Vacanook Affiliate auth — mirror toko pembeli (nd2-auth) */
:root {
  --aff-teal: #0F8FA8;
  --aff-teal-dark: #176078;
  --aff-navy: #17324D;
  --aff-mist: #EAF8FA;
  --aff-soft: #F5FBFC;
  --aff-muted: #64748B;
  --aff-line: #E2E8F0;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Inter, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--aff-muted);
  background: #fff;
}

body.aff-auth {
  overflow-x: hidden;
}

.aff-shell {
  position: fixed;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  background: #fff;
}

.aff-brand {
  display: none;
  position: relative;
  width: 42%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #0F8FA8 0%, #176078 50%, #17324D 100%);
  padding: 2.5rem 2.75rem;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.aff-brand::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -60px;
  right: -40px;
}

.aff-brand::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  bottom: 40px;
  left: -40px;
}

@media (min-width: 1024px) {
  .aff-brand { display: flex; }
}

.aff-brand-inner { position: relative; z-index: 1; }

.aff-brand-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.aff-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2.5rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

.aff-brand-title {
  margin: 1.1rem 0 0;
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}

.aff-brand-title span { color: #CDEFF3; }

.aff-brand-sub {
  margin: 1rem 0 0;
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  max-width: 22rem;
}

.aff-brand-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.aff-brand-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}

.aff-brand-list .ico {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  color: #CDEFF3;
  font-size: 12px;
  flex-shrink: 0;
}

.aff-brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.aff-brand-foot a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  text-decoration: none;
}

.aff-form-wrap {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.aff-mobile-top {
  display: block;
  padding: 1.75rem 1.5rem 3rem;
  color: #fff;
  background: linear-gradient(160deg, #0F8FA8, #17324D);
}

@media (min-width: 1024px) {
  .aff-mobile-top { display: none; }
}

.aff-mobile-top h2 {
  margin: 1.1rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.aff-mobile-top p {
  margin: .4rem 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}

.aff-desktop-back {
  display: none;
  justify-content: flex-end;
  padding: 2rem 2.5rem 0;
}

@media (min-width: 1024px) {
  .aff-desktop-back { display: flex; }
}

.aff-desktop-back a {
  font-size: 14px;
  font-weight: 600;
  color: var(--aff-muted);
  text-decoration: none;
}

.aff-desktop-back a:hover { color: var(--aff-teal); }

.aff-form-center {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 1.25rem 2.5rem;
  margin-top: -1.5rem;
}

@media (min-width: 1024px) {
  .aff-form-center {
    align-items: center;
    margin-top: 0;
    padding: 2rem 2.5rem 2.5rem;
  }
}

.aff-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--aff-line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .aff-card {
    border: 0;
    border-radius: 0;
    padding: 0;
    max-width: 400px;
  }
}

.aff-card.aff-card--wide {
  max-width: 480px;
}

.aff-title {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--aff-navy);
}

.aff-sub {
  margin: .65rem 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--aff-muted);
}

.aff-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: .75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--aff-mist);
  color: var(--aff-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.aff-form { margin-top: 1.75rem; }

.aff-label {
  display: block;
  margin: 0 0 .5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--aff-muted);
}

.aff-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border-radius: 1rem;
  background: var(--aff-soft);
  margin-bottom: 1.1rem;
  box-sizing: border-box;
}

.aff-field:focus-within { background: var(--aff-mist); }

.aff-field .aff-ico {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 143, 168, .7);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.aff-field:focus-within .aff-ico { color: var(--aff-teal); }

.aff-input {
  width: 100%;
  min-height: 52px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 1rem;
  padding: .85rem 2.75rem .85rem 3rem;
  font-size: 15px;
  color: var(--aff-navy);
  font-family: inherit;
  box-sizing: border-box;
}

.aff-input::placeholder { color: #94A3B8; }

.aff-toggle-pass {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aff-toggle-pass:hover { color: var(--aff-teal); }

.aff-captcha {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 1.1rem;
}

.aff-captcha img {
  width: 100%;
  height: 52px;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--aff-soft);
  cursor: pointer;
}

.aff-captcha .aff-field { margin-bottom: 0; }

.aff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 1rem;
  background: var(--aff-teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}

.aff-btn:hover { background: var(--aff-teal-dark); }

.aff-forgot {
  display: block;
  width: 100%;
  margin: 16px 0 4px;
  text-align: center;
  font-size: 15px;
  color: var(--aff-muted);
}
.aff-forgot a,
.aff-forgot a:link,
.aff-forgot a:visited,
.aff-forgot a:active {
  display: inline;
  color: var(--aff-teal) !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  border-bottom: 0 !important;
}
.aff-forgot a:hover,
.aff-forgot a:focus {
  color: var(--aff-teal-dark) !important;
  text-decoration: none !important;
}

.aff-foot {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--aff-muted);
}

.aff-foot a {
  color: var(--aff-teal);
  font-weight: 600;
  text-decoration: none;
}

.aff-foot a:hover { color: var(--aff-teal-dark); }

.aff-foot small {
  display: block;
  margin-top: .45rem;
  font-size: 12px;
  color: #94A3B8;
}

.aff-copy {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
}

/* Select2 soft field */
.aff-field--select { padding: 0; overflow: hidden; }
.aff-field--select .select2-container { width: 100% !important; }
.aff-field--select .select2-selection--single {
  height: 52px !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 1rem !important;
  display: flex !important;
  align-items: center;
  padding-left: 2.75rem !important;
}
.aff-field--select .select2-selection__rendered {
  color: var(--aff-navy) !important;
  font-size: 15px !important;
  line-height: 52px !important;
  padding-left: 0 !important;
}
.aff-field--select .select2-selection__arrow {
  height: 52px !important;
  right: 10px !important;
}
.aff-field--select .select2-selection__placeholder { color: #94A3B8 !important; }

.page-loader-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255,255,255,.72);
  display: none;
  align-items: center;
  justify-content: center;
}
.page-loader-wrapper .loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--aff-mist);
  border-top-color: var(--aff-teal);
  border-radius: 50%;
  animation: affspin .7s linear infinite;
}
@keyframes affspin { to { transform: rotate(360deg); } }

.hasil, .hasil_l { display: contents; }
