/* PrePoster Admin Login — polished split layout */

:root {
  --pp-pink: #EC4899;
  --pp-pink-soft: #F472B6;
  --pp-purple: #8B5CF6;
  --pp-purple-dark: #7C3AED;
  --pp-purple-deep: #6D28D9;
  --pp-navy: #1E1B4B;
  --pp-text: #334155;
  --pp-muted: #64748B;
  --pp-muted-light: #94A3B8;
  --pp-border: #E2E8F0;
  --pp-input-bg: #F8FAFC;
  --pp-white: #FFFFFF;
  --pp-gradient: linear-gradient(90deg, #EC4899 0%, #C026D3 38%, #8B5CF6 100%);
  --pp-gradient-text: linear-gradient(90deg, #EC4899 0%, #A855F7 55%, #8B5CF6 100%);
  --pp-gradient-page: linear-gradient(118deg, #FFF5FA 0%, #F8F4FF 32%, #FDF2F8 58%, #F5F3FF 82%, #FAF8FF 100%);
  --pp-shadow-sm: 0 2px 12px rgba(109, 40, 217, 0.08);
  --pp-shadow-md: 0 14px 40px rgba(139, 92, 246, 0.12);
  --pp-shadow-hero: 0 24px 48px rgba(109, 40, 217, 0.14);
  --pp-radius: 12px;
  --pp-radius-lg: 16px;
  --pp-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  height: 100%;
  overflow: hidden;
}

body.pp-login-page {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--pp-font);
  font-size: 14px;
  color: var(--pp-text);
  background: var(--pp-gradient-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

.pp-login-split {
  display: flex;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

/* ── Left panel ── */
.pp-login-left {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: clamp(18px, 2.8vh, 32px) clamp(24px, 4vw, 48px) clamp(16px, 2.2vh, 24px);
  background: var(--pp-gradient-page);
  position: relative;
  overflow: hidden;
}

.pp-login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pp-login-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.pp-login-bg .blob-pink {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 8%;
  background: rgba(244, 114, 182, 0.28);
}

.pp-login-bg .blob-purple {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -60px;
  background: rgba(167, 139, 250, 0.26);
}

.pp-login-bg .blob-lavender {
  width: 280px;
  height: 280px;
  top: 42%;
  left: 38%;
  background: rgba(221, 214, 254, 0.35);
}

.pp-login-bg .blob-rose {
  width: 200px;
  height: 200px;
  top: 18%;
  left: 12%;
  background: rgba(251, 207, 232, 0.3);
}

.pp-login-left > *:not(.pp-login-bg) {
  position: relative;
  z-index: 1;
}

.pp-login-left-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(12px, 2vh, 20px);
  text-decoration: none;
}

.pp-login-left-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: var(--pp-shadow-sm);
}

.pp-login-left-brand strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--pp-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pp-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(236, 72, 153, 0.12);
  color: var(--pp-purple-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: clamp(10px, 1.6vh, 16px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.06);
}

.pp-login-badge i {
  font-size: 10px;
  color: var(--pp-pink);
}

.pp-login-hero-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--pp-navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(8px, 1.2vh, 12px);
  max-width: 520px;
}

.pp-login-hero-title .pp-accent {
  background: var(--pp-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-login-hero-desc {
  font-size: clamp(13px, 1.25vw, 14px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--pp-muted);
  margin: 0 0 clamp(8px, 1vh, 14px);
  max-width: 480px;
}

.pp-login-illustration {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 0;
  position: relative;
}

.pp-login-illustration::before {
  content: '';
  position: absolute;
  width: min(72%, 480px);
  aspect-ratio: 1.4;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.06) 45%, transparent 72%);
  z-index: 0;
}

.pp-login-illustration img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(580px, 94%);
  max-height: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 44px rgba(109, 40, 217, 0.12));
}

.pp-login-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: clamp(10px, 1.4vh, 16px);
}

.pp-login-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--pp-radius);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pp-login-feature:hover {
  transform: translateY(-1px);
  box-shadow: var(--pp-shadow-sm);
}

.pp-login-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.pp-login-feature-icon.pink { background: #FCE7F3; color: var(--pp-pink); }
.pp-login-feature-icon.purple { background: #EDE9FE; color: var(--pp-purple); }
.pp-login-feature-icon.blue { background: #DBEAFE; color: #3B82F6; }
.pp-login-feature-icon.orange { background: #FFEDD5; color: #F97316; }

.pp-login-feature span {
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ── Right panel ── */
.pp-login-right {
  width: min(460px, 40vw);
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 36px) clamp(24px, 3vw, 40px);
  background: var(--pp-white);
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: -12px 0 40px rgba(30, 27, 75, 0.04);
  overflow: hidden;
  position: relative;
}

.pp-login-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--pp-gradient);
  opacity: 0.85;
}

.pp-login-card {
  width: 100%;
  max-width: 368px;
  position: relative;
  z-index: 1;
}

.pp-login-logo-wrap {
  text-align: center;
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

.pp-login-logo-wrap img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.pp-login-title {
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--pp-navy);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.pp-login-title .pp-accent {
  background: var(--pp-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-login-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: var(--pp-muted);
  text-align: center;
  margin: 0 0 clamp(16px, 2.2vh, 24px);
  line-height: 1.6;
}

.pp-form-group {
  margin-bottom: clamp(12px, 1.6vh, 16px);
}

.pp-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pp-navy);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.pp-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.pp-form-label-row .pp-form-label {
  margin-bottom: 0;
}

.pp-input-wrap {
  position: relative;
}

.pp-input-wrap .pp-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pp-muted-light);
  font-size: 14px;
  pointer-events: none;
}

.pp-input-wrap .pp-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--pp-muted-light);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  line-height: 1;
}

.pp-input-wrap .pp-input-toggle:hover {
  color: var(--pp-purple);
}

.pp-input {
  display: block;
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--pp-border);
  border-radius: var(--pp-radius);
  font-size: 14px;
  font-family: var(--pp-font);
  font-weight: 400;
  color: var(--pp-navy);
  background: var(--pp-input-bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.pp-input:focus {
  border-color: var(--pp-purple);
  background: var(--pp-white);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.pp-input::placeholder {
  color: #A8B4C4;
  font-weight: 400;
}

.pp-input.pp-input-password {
  padding-right: 42px;
}

.pp-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-purple);
  text-decoration: none;
}

.pp-link:hover {
  color: var(--pp-purple-dark);
  text-decoration: underline;
}

.pp-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 clamp(14px, 2vh, 18px);
}

.pp-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pp-purple);
  cursor: pointer;
}

.pp-checkbox-row label {
  font-size: 13px;
  font-weight: 400;
  color: var(--pp-muted);
  cursor: pointer;
}

.pp-btn-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: var(--pp-radius);
  background: var(--pp-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--pp-font);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.32);
}

.pp-btn-signin:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.38);
}

.pp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(14px, 2vh, 18px) 0 clamp(12px, 1.6vh, 16px);
}

.pp-divider::before,
.pp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pp-border);
}

.pp-divider span {
  font-size: 12px;
  font-weight: 400;
  color: var(--pp-muted-light);
  white-space: nowrap;
}

.pp-social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.pp-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--pp-border);
  background: var(--pp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--pp-muted);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

.pp-social-btn:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--pp-shadow-sm);
  transform: translateY(-1px);
}

.pp-social-btn.google { color: #EA4335; }
.pp-social-btn.facebook { color: #1877F2; }
.pp-social-btn.microsoft { color: #00A4EF; }

.pp-legal {
  text-align: center;
  margin-top: clamp(14px, 2vh, 18px);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--pp-muted-light);
}

.pp-legal a {
  color: var(--pp-purple);
  font-weight: 600;
  text-decoration: none;
}

.pp-legal a:hover {
  text-decoration: underline;
}

.pp-alert {
  padding: 11px 13px;
  border-radius: var(--pp-radius);
  font-size: 12px;
  margin-bottom: 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

.pp-alert ul {
  margin: 0;
  padding-left: 16px;
}

@media (max-height: 780px) {
  .pp-login-hero-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pp-login-feature {
    padding: 8px 10px;
  }

  .pp-login-feature span {
    font-size: 11px;
  }
}

@media (max-height: 680px) {
  .pp-login-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pp-login-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-login-right {
    width: min(420px, 44vw);
  }
}

@media (max-width: 900px) {
  html,
  body.pp-login-page {
    overflow: auto;
    height: auto;
  }

  .pp-login-split {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: visible;
  }

  .pp-login-left {
    height: auto;
    min-height: 48vh;
    grid-template-rows: auto auto auto minmax(180px, 36vh) auto;
  }

  .pp-login-right {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--pp-border);
    box-shadow: none;
    padding: 28px 24px 32px;
  }

  .pp-login-right::before {
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
  }
}

@media (max-width: 480px) {
  .pp-login-features {
    display: none;
  }

  .pp-login-left {
    min-height: auto;
    grid-template-rows: auto auto auto minmax(140px, 28vh);
    padding: 20px 18px;
  }
}
