/* PMD Login — Inter + modern landscape background */
.pmd-login-body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pmd-login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    url('/static/images/login-landscape-bg.png') center / cover no-repeat;
  transform: scale(1.03);
  z-index: 0;
}

.pmd-login-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(15, 23, 42, 0.72) 0%,
      rgba(15, 23, 42, 0.45) 45%,
      rgba(30, 58, 95, 0.55) 100%);
  z-index: 1;
}

.pmd-back-home {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.pmd-back-home:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.pmd-login-modal {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 8px 32px rgba(15, 23, 42, 0.22),
    0 32px 64px rgba(15, 23, 42, 0.12);
  padding: 0 32px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  font-family: inherit;
  animation: pmd-login-in 0.5s ease-out;
}

.pmd-login-modal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.85) 100%);
}

.pmd-login-modal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
}

.pmd-login-head,
.pmd-login-modal form {
  position: relative;
  z-index: 1;
}

.pmd-login-head {
  padding-top: 28px;
  margin-bottom: 4px;
}

@keyframes pmd-login-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pmd-login-team {
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #3b82f6 0%, #6366f1 50%, #0ea5e9 100%);
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.6);
}

.pmd-login-team img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid #fff;
}

.pmd-login-modal h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.25;
  font-family: inherit;
}

.pmd-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.pmd-hint {
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
  margin: 0 0 26px;
  line-height: 1.45;
  font-family: inherit;
}

.pmd-field {
  text-align: left;
  margin-bottom: 16px;
}

.pmd-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
  font-family: inherit;
}

.pmd-field label i {
  color: #94a3b8;
  font-size: 12px;
  width: 14px;
  text-align: center;
}

.pmd-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pmd-field input::placeholder {
  color: #94a3b8;
}

.pmd-field input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pmd-error {
  display: none;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 14px;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
}

.pmd-submit {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
}

.pmd-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.38);
  filter: brightness(1.03);
}

.pmd-submit:active:not(:disabled) {
  transform: translateY(0);
}

.pmd-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.pmd-submit i {
  margin-right: 6px;
}

@media (max-width: 480px) {
  .pmd-login-modal {
    padding: 0 22px 24px;
    border-radius: 18px;
  }

  .pmd-login-head {
    padding-top: 22px;
  }

  .pmd-login-team {
    width: 112px;
    height: 112px;
  }

  .pmd-back-home {
    top: 16px;
    left: 16px;
    font-size: 12px;
    padding: 7px 12px;
  }
}
