:root {
  --pg-bg: #f1f3f4;
  --pg-card: #ffffff;
  --pg-surface: #eef1f4;
  --pg-text: #111827;
  --pg-muted: #5f6672;
  --pg-border: #d8dde5;
  --pg-accent: #4dad8a;
  --pg-accent-dark: #329372;
  --pg-link: #17202a;
  --pg-dot: #9fa6af;
}

* {
  box-sizing: border-box;
}

body.pg-auth-page {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #ffffff 0%, #f4f5f7 40%, #edf0f2 100%);
  color: var(--pg-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.pg-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
}

.pg-auth-visual {
  position: relative;
  overflow: hidden;
  padding: 34px clamp(24px, 4.6vw, 72px);
  background: linear-gradient(145deg, #f6f8f9 0%, #eceff1 100%);
}

.pg-brand-logo {
  display: block;
  width: clamp(96px, 11vw, 140px);
  height: auto;
}

.pg-auth-right {
  position: relative;
  padding: clamp(26px, 4vw, 52px) clamp(16px, 4.8vw, 62px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f3f4f6;
}

.pg-auth-right::before {
  content: "";
  position: absolute;
  top: 8px;
  left: clamp(14px, 3vw, 40px);
  width: 46%;
  height: 250px;
  background-image: radial-gradient(circle, var(--pg-dot) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
}

.pg-auth-card {
  width: min(560px, 100%);
  position: relative;
  z-index: 1;
  background: var(--pg-card);
  border-radius: 14px;
  border: 1px solid #e3e6eb;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  padding: clamp(22px, 2.4vw, 34px);
}

.pg-auth-title {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pg-auth-subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--pg-muted);
}

.pg-inline-link {
  color: var(--pg-link);
  text-decoration: none;
  border-bottom: 1px solid #cfb357;
  padding-bottom: 1px;
}

.pg-inline-link:hover {
  color: #0e1318;
}

.pg-form {
  margin-top: 24px;
}

.pg-field {
  margin-bottom: 15px;
}

.pg-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.pg-label .required {
  color: #da4c45;
}

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

.pg-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  outline: 0;
  background: #fbfcfe;
  color: #202838;
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-input:focus {
  border-color: var(--pg-accent);
  box-shadow: 0 0 0 3px rgba(77, 173, 138, 0.2);
}

.pg-input.with-prefix {
  padding-left: 68px;
}

.pg-input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 700;
  font-size: 18px;
  pointer-events: none;
}

.pg-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6a7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 6px;
  cursor: pointer;
}

.pg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pg-links {
  margin: 6px 0 20px;
}

.pg-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(90deg, #50ab8b 0%, #53b694 100%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pg-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(77, 173, 138, 0.25);
  background: linear-gradient(90deg, var(--pg-accent-dark) 0%, #42a884 100%);
}

.pg-bottom-note {
  margin-top: 16px;
  text-align: center;
  color: var(--pg-muted);
  font-size: 16px;
}

.pg-helper-text {
  margin-top: 18px;
  color: #6b7280;
  font-size: 15px;
}

.pg-helper-text a {
  color: #3b8f76;
  text-decoration: none;
}

.pg-login .pg-auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #d5d8dc 0%, #dfe2e6 44%, #d4d7db 100%);
}

.pg-login-visual-figure {
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.2);
}

.pg-login-visual-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.pg-login-visual-copy {
  margin-top: 18px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(68, 176, 140, 0.95) 0%, rgba(67, 154, 125, 0.94) 100%);
  color: #f9fffc;
}

.pg-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #214137;
  background: #ffd975;
  border-radius: 999px;
  padding: 4px 9px;
}

.pg-login-visual-copy h2 {
  margin: 10px 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.pg-login-visual-copy p {
  margin: 12px 0 0;
  font-size: 16px;
}

.pg-login-visual-copy strong {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.pg-register .pg-auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.75), transparent 56%);
}

.pg-register-visual-content {
  position: relative;
  z-index: 1;
  margin-top: clamp(30px, 5.2vw, 92px);
  max-width: 620px;
}

.pg-register-visual-content h2 {
  margin: 0 0 24px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.02em;
}

.pg-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 17px;
  color: #1f2937;
}

.pg-feature-list li::before {
  content: "v";
  min-width: 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 2px;
  font-size: 12px;
  color: #ffffff;
  background: #2f3340;
}

.pg-trusted-title {
  margin: 34px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.pg-trusted-title::before,
.pg-trusted-title::after {
  content: "";
  flex: 1;
  border-top: 1px solid #bfc5cd;
}

.pg-trusted-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 10px;
}

.pg-chip {
  border: 1px solid #d9dde3;
  background: #ffffff;
  border-radius: 10px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.01em;
}

.pg-radio-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pg-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-weight: 600;
  font-size: 15px;
}

.pg-radio input[type="radio"] {
  accent-color: var(--pg-accent);
}

.pg-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-section-label {
  margin: 14px 0 4px;
  color: #3f4957;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.pg-consent {
  margin: 8px 0 16px;
  font-size: 14px;
  color: #6b7280;
}

.pg-consent input[type="checkbox"] {
  accent-color: var(--pg-accent);
}

.pg-consent a {
  color: #3b8f76;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .pg-auth-shell {
    grid-template-columns: 1fr;
  }

  .pg-auth-visual {
    display: none;
  }

  .pg-auth-right {
    align-items: center;
    min-height: 100vh;
  }

  .pg-auth-right::before {
    width: 74%;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .pg-auth-right {
    padding: 18px 14px;
  }

  .pg-auth-card {
    border-radius: 12px;
    padding: 18px 14px;
  }

  .pg-auth-title {
    font-size: 32px;
  }

  .pg-grid {
    grid-template-columns: 1fr;
  }

  .pg-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .pg-row {
    flex-wrap: wrap;
  }
}

