:root{
  --pm-auth-bg:#07111c;
  --pm-auth-bg-2:#0b1727;
  --pm-auth-card:rgba(8,16,28,.82);
  --pm-auth-border:rgba(255,255,255,.08);
  --pm-auth-border-strong:rgba(255,255,255,.12);
  --pm-auth-text:#edf3fb;
  --pm-auth-muted:#98a9c2;
  --pm-auth-green:#43c878;
  --pm-auth-green-dark:#2fb868;
  --pm-auth-danger:#ff7d7d;
  --pm-auth-shadow:0 30px 80px rgba(0,0,0,.42);
}

*{
  box-sizing:border-box;
}

.pm-auth-body{
  margin:0;
  min-height:100vh;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  color:var(--pm-auth-text);
  background:#040b14;
  position:relative;
  overflow:hidden;
}

.pm-auth-bg{
  position:fixed;
  inset:0;
  z-index:0;
  background:
    radial-gradient(circle at 50% 0%, rgba(64,130,255,.18), transparent 24%),
    linear-gradient(180deg, rgba(4,10,18,.18), rgba(4,10,18,.72)),
    url("/assets/images/auth-bg.png") center center / cover no-repeat;
  transform:scale(1.03);
}

.pm-auth-overlay{
  position:fixed;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg, rgba(4,10,18,.88) 0%, rgba(4,10,18,.58) 50%, rgba(4,10,18,.78) 100%);
  pointer-events:none;
}

.pm-auth-page{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 20px;
}

.pm-auth-wrap{
  width:100%;
  max-width:460px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.pm-auth-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:18px;
  text-decoration:none;
  color:inherit;
}

.pm-auth-logo{
  width:92px;
  height:92px;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(67,200,120,.14), rgba(68,116,255,.16));
  border:1px solid var(--pm-auth-border-strong);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  box-shadow:0 18px 36px rgba(0,0,0,.28);
}

.pm-auth-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.pm-auth-logo-fallback{
  display:none;
  font-size:30px;
  font-weight:900;
  letter-spacing:.06em;
}

.pm-auth-logo.is-fallback .pm-auth-logo-fallback{
  display:block;
}

.pm-auth-brand-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  text-align:center;
}

.pm-auth-brand-copy strong{
  font-size:28px;
  line-height:1.1;
  font-weight:900;
}

.pm-auth-brand-copy span{
  font-size:14px;
  color:var(--pm-auth-muted);
}

.pm-auth-card{
  width:100%;
  padding:30px;
  border-radius:28px;
  background:var(--pm-auth-card);
  border:1px solid var(--pm-auth-border);
  box-shadow:var(--pm-auth-shadow);
  backdrop-filter:blur(14px);
}

.pm-auth-intro{
  margin-bottom:22px;
  text-align:center;
}

.pm-auth-kicker{
  display:inline-block;
  margin-bottom:12px;
  padding:7px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#dff8e7;
  background:rgba(67,200,120,.10);
  border:1px solid rgba(67,200,120,.18);
}

.pm-auth-intro h1{
  margin:0;
  font-size:38px;
  line-height:1.05;
  font-weight:900;
}

.pm-auth-intro p{
  margin:12px 0 0;
  color:var(--pm-auth-muted);
  line-height:1.65;
  font-size:15px;
}

.pm-auth-alert{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:16px;
  font-size:14px;
  line-height:1.6;
}

.pm-auth-alert-error{
  background:rgba(255,125,125,.12);
  border:1px solid rgba(255,125,125,.20);
  color:#ffdede;
}

.pm-auth-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.pm-auth-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pm-auth-field label{
  font-size:14px;
  font-weight:700;
  color:#dce7f8;
}

.pm-auth-field input{
  width:100%;
  height:56px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  color:var(--pm-auth-text);
  padding:0 16px;
  font-size:15px;
  outline:none;
  transition:.2s ease;
}

.pm-auth-field input::placeholder{
  color:#8ea1bc;
}

.pm-auth-field input:focus{
  border-color:rgba(67,200,120,.35);
  box-shadow:0 0 0 4px rgba(67,200,120,.08);
  background:rgba(255,255,255,.06);
}

.pm-auth-btn{
  margin-top:4px;
  width:100%;
  min-height:56px;
  border:none;
  border-radius:16px;
  background:linear-gradient(180deg, var(--pm-auth-green), var(--pm-auth-green-dark));
  color:#06120b;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
  box-shadow:0 14px 30px rgba(47,184,104,.20);
}

.pm-auth-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}

.pm-auth-switch{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.06);
  font-size:14px;
  color:var(--pm-auth-muted);
  text-align:center;
}

.pm-auth-switch a{
  color:#fff;
  font-weight:800;
  margin-left:6px;
  text-decoration:none;
}

.pm-auth-switch a:hover{
  color:#c9f6d7;
}

.pm-auth-mascot{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:4;
  display:flex;
  align-items:flex-end;
  gap:10px;
}

.pm-auth-mascot-bubble{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(8,16,28,.88);
  border:1px solid rgba(255,255,255,.07);
  color:#d8e5f7;
  font-size:13px;
  box-shadow:0 12px 28px rgba(0,0,0,.28);
  backdrop-filter:blur(10px);
}

.pm-auth-mascot-avatar{
  width:68px;
  height:68px;
  border-radius:20px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(67,200,120,.14), rgba(68,116,255,.16));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 28px rgba(0,0,0,.26);
  font-size:28px;
}

.pm-auth-mascot-avatar img{
  width:100%;
  height:100%;
  object-fit:contain;
}

@media (max-width: 640px){
  .pm-auth-page{
    padding:18px 14px 120px;
  }

  .pm-auth-logo{
    width:78px;
    height:78px;
    border-radius:22px;
  }

  .pm-auth-brand-copy strong{
    font-size:24px;
  }

  .pm-auth-card{
    padding:22px;
    border-radius:24px;
  }

  .pm-auth-intro h1{
    font-size:30px;
  }

  .pm-auth-mascot{
    right:12px;
    left:12px;
    bottom:12px;
    justify-content:flex-end;
  }

  .pm-auth-mascot-bubble{
    max-width:220px;
    font-size:12px;
  }

  .pm-auth-mascot-avatar{
    width:58px;
    height:58px;
    border-radius:18px;
  }

  .pm-auth-logo-clean{
    width:150px;
    max-width:68vw;
  }

}

.pm-auth-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:22px;
  text-decoration:none;
}

.pm-auth-logo-clean{
  display:block;
  width:180px;
  max-width:70vw;
  height:auto;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.35));
}