.auth-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--pp-bg);
  font-family: 'Poppins', sans-serif;
  color: var(--pp-text);
}

.auth-body .lu {
  width: 20px;
  height: 20px;
}

.auth-body .lu-sm {
  width: 16px;
  height: 16px;
}

.auth-body .lu-lg {
  width: 28px;
  height: 28px;
}

.auth-body .lu-xl {
  width: 40px;
  height: 40px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-visual {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  background: linear-gradient(180deg, rgba(15, 44, 41, 0.10) 0%, rgba(15, 44, 41, 0) 30%, rgba(15, 44, 41, 0) 55%, rgba(15, 44, 41, 0.30) 100%);
}

.auth-visual-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--pp-white);
}

.auth-visual-brand img {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 12px;
  background: #FFFFFF;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(15, 44, 41, 0.14), 0 14px 34px rgba(15, 44, 41, 0.22);
}

.auth-visual-brand span {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(15, 44, 41, 0.65), 0 3px 14px rgba(15, 44, 41, 0.55);
}

.auth-visual-bottom {
  max-width: 34rem;
  margin: -1.2rem -1.5rem;
  padding: 1.2rem 1.5rem;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 20% 90%, rgba(15, 44, 41, 0.30), rgba(15, 44, 41, 0) 75%);
}

.auth-quote {
  margin: 0 0 1.6rem;
  color: var(--pp-white);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(15, 44, 41, 0.7), 0 4px 18px rgba(15, 44, 41, 0.55);
}

.auth-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-bullets li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.97);
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(15, 44, 41, 0.7), 0 2px 10px rgba(15, 44, 41, 0.5);
}

.auth-bullets .lu {
  flex-shrink: 0;
  color: #9FE3D8;
  filter: drop-shadow(0 1px 4px rgba(15, 44, 41, 0.4));
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pp-white);
}

.auth-back-form { position: absolute; top: 1.35rem; right: 1.8rem; z-index: 5; margin: 0; }
.auth-back-form .auth-back { position: static; top: auto; right: auto; border: 0; background: none; font-family: inherit; cursor: pointer; }
.auth-back {
  position: absolute;
  top: 1.35rem;
  right: 1.8rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.3rem 0.25rem;
  color: var(--pp-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.18s ease;
}

.auth-back:hover {
  color: var(--pp-primary);
}

.auth-back:focus-visible {
  outline: 2px solid rgba(42, 157, 143, 0.85);
  outline-offset: 2px;
}

.auth-card {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  background: var(--pp-white);
  padding: 4.75rem 3rem 3rem;
  animation: authFadeSlideUp 0.4s ease both;
}

.auth-form-inner {
  width: 100%;
  max-width: 460px;
  margin: auto;
  text-align: center;
}

.auth-devlink {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(42, 157, 143, 0.4);
  border-radius: 12px;
  background: rgba(42, 157, 143, 0.08);
  font-size: 0.83rem;
  color: var(--pp-dark);
}

.auth-devlink strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.auth-devlink .lu-sm {
  color: var(--pp-primary);
}

.auth-devlink a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: var(--pp-primary);
  color: var(--pp-white);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.18s ease;
}

.auth-devlink a:hover {
  background: var(--pp-primary-dark, #21867A);
}

@keyframes authFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.1rem;
  box-shadow: 0 1px 2px rgba(22, 59, 56, 0.08), 0 8px 20px rgba(42, 157, 143, 0.18);
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  text-align: left;
  align-items: stretch;
}

.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pp-dark);
}

.auth-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--pp-muted);
}

.auth-card .alert {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-card .form-group {
  margin-bottom: 1rem;
}

.auth-card .form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-dark);
  text-align: left;
}

.input-ico {
  position: relative;
}

.input-ico > .lu,
.input-ico > .lu-sm {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pp-muted);
  pointer-events: none;
  transition: color 0.18s ease;
}

.input-ico .form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem 0.7rem 2.6rem;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: var(--pp-white);
  color: var(--pp-text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-ico .form-input:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.3);
}

.input-ico .form-input:focus-visible {
  outline: 2px solid var(--pp-primary);
  outline-offset: 2px;
}

.input-ico:focus-within > .lu,
.input-ico:focus-within > .lu-sm {
  color: var(--pp-primary);
}

.input-ico select.form-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235E6E6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
}

.input-ico select.form-input:disabled {
  background-color: var(--pp-bg);
  color: var(--pp-muted);
  cursor: default;
  opacity: 1;
}

.form-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--pp-muted);
  text-align: left;
}

.pw-meter {
  margin-top: 0.55rem;
  height: 6px;
  border-radius: 999px;
  background: var(--pp-border);
  overflow: hidden;
}

.pw-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: transparent;
  transition: width 0.35s ease, background 0.35s ease;
}

.pw-meter i.is-weak {
  width: 33%;
  background: #D64545;
}

.pw-meter i.is-fair {
  width: 66%;
  background: #E3A62F;
}

.pw-meter i.is-strong {
  width: 100%;
  background: #2A9D8F;
}

.pw-meter-text {
  display: block;
  margin-top: 0.3rem;
  min-height: 1.05em;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  color: var(--pp-muted);
}

.pw-meter-text.is-weak {
  color: #D64545;
}

.pw-meter-text.is-fair {
  color: #B07E1A;
}

.pw-meter-text.is-strong {
  color: #1D7A6F;
}

.auth-card .form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--pp-danger);
  text-align: left;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: var(--pp-text);
  cursor: pointer;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1.5px solid var(--pp-border);
  border-radius: 6px;
  background: var(--pp-white);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.auth-remember input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: var(--pp-white);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.auth-remember input[type="checkbox"]:checked {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
}

.auth-remember input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.auth-remember input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(42, 157, 143, 0.85);
  outline-offset: 2px;
}

.auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pp-primary), var(--pp-primary-dark));
  color: var(--pp-white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(22, 59, 56, 0.08), 0 10px 24px rgba(42, 157, 143, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(22, 59, 56, 0.1), 0 16px 34px rgba(42, 157, 143, 0.36);
}

.auth-btn:active {
  transform: scale(0.98);
}

.auth-btn:focus-visible {
  outline: 2px solid rgba(42, 157, 143, 0.85);
  outline-offset: 3px;
}

.auth-links {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--pp-border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: var(--pp-muted);
}

.auth-links a {
  color: var(--pp-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.auth-links a:hover {
  color: var(--pp-primary-dark);
  text-decoration: none;
}

.auth-links a:focus-visible {
  outline: 2px solid rgba(42, 157, 143, 0.85);
  outline-offset: 2px;
  border-radius: 4px;
}

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

  .auth-visual {
    display: none;
  }

  .auth-card {
    padding: 4rem 1.4rem 2.5rem;
    padding-bottom: 2.5rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .auth-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .auth-back {
    top: calc(0.9rem + env(safe-area-inset-top, 0px));
    right: 1rem;
    min-height: 44px;
    padding: 0.7rem 0.9rem;
  }

  .auth-links {
    gap: 0.15rem;
  }

  .auth-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0;
  }

  .auth-remember {
    min-height: 44px;
  }

  .auth-btn {
    min-height: 48px;
  }

  .auth-devlink a {
    min-height: 44px;
    padding: 0.6rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }

  .auth-back,
  .auth-btn,
  .auth-remember input[type="checkbox"],
  .auth-remember input[type="checkbox"]::before,
  .input-ico .form-input,
  .input-ico > .lu,
  .input-ico > .lu-sm,
  .auth-links a,
  .pw-meter i {
    transition: none;
  }

  .auth-btn:hover {
    transform: none;
  }
}
