:root {
  --pw-accent: #6f8fb8;
  --pw-accent-light: #c9d6e8;
  --pw-accent-deep: #34507a;
  --pw-accent-grad: linear-gradient(135deg, #e3ebf5, #a9bfdc 55%, #7f9cc6);
  --pw-accent-btn: linear-gradient(135deg, #4f6f9c, #2f4a72);
  --pw-line: rgba(255, 255, 255, .08);
  --pw-text: #a9b0b8;
}

body {
  background: #000 !important;
}

.pw-auth {
  display: flex;
  min-height: 100vh;
  background: #000;
  color: var(--pw-text);
  font-family: 'Poppins', sans-serif;
}
.pw-auth h1,
.pw-auth h2,
.pw-auth h3,
.pw-auth label,
.pw-auth .form-control,
.pw-auth button {
  font-family: 'Poppins', sans-serif;
}

/* Brand panel */
.pw-auth-brand {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  flex: 0 0 46%;
  max-width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 64px;
  overflow: hidden;
  border-right: 1px solid var(--pw-line);
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 143, 184, .22), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(52, 80, 122, .28), transparent 55%),
    #030405;
}
.pw-auth-particles {
  position: absolute;
  inset: 0;
  opacity: .3;
  z-index: 0;
}
.pw-auth-brand > *:not(.pw-auth-particles) {
  position: relative;
  z-index: 1;
}
.pw-auth-logo img {
  height: 40px;
  width: auto;
}
.pw-auth-brand-body {
  max-width: 460px;
}
.pw-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(111, 143, 184, .35);
  background: rgba(111, 143, 184, .08);
  color: var(--pw-accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.pw-auth-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pw-accent);
}
.pw-auth-brand h2 {
  color: #fff;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.pw-auth-grad {
  background: var(--pw-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pw-auth-brand p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 34px;
}
.pw-auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pw-auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--pw-line);
}
.pw-auth-points li:last-child {
  border-bottom: 1px solid var(--pw-line);
}
.pw-auth-points i {
  flex: 0 0 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(111, 143, 184, .3);
  background: rgba(111, 143, 184, .08);
  color: var(--pw-accent-light);
  font-size: 18px;
}
.pw-auth-points strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.pw-auth-points span {
  font-size: 14px;
}
.pw-auth-legal,
.pw-auth-legal p {
  font-size: 13px;
  color: rgba(169, 176, 184, .7) !important;
  margin: 0;
}

/* Form panel */
.pw-auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: radial-gradient(circle at 70% 10%, rgba(111, 143, 184, .08), transparent 45%), #000;
}
.pw-auth-mobile-logo,
.pw-auth-main .pw-auth-legal {
  display: none;
}
.pw-auth-card {
  width: 100%;
  max-width: 440px;
}
.pw-auth-card-head {
  margin-bottom: 26px;
}
.pw-auth-card-head .pw-auth-kicker {
  display: block;
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pw-auth-card-head h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 10px;
}
.pw-auth-card-head p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.pw-auth-url {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 26px;
  border-radius: 12px;
  border: 1px solid var(--pw-line);
  background: rgba(255, 255, 255, .02);
  font-size: 13px;
}
.pw-auth-url i {
  color: #7fb69a;
  font-size: 16px;
}
.pw-auth-url strong {
  color: #fff;
  font-weight: 600;
}

.pw-auth .mb-3 {
  margin-bottom: 18px !important;
}
.pw-auth .form-label {
  display: block;
  color: #d5dae0;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.pw-auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pw-auth-label-row a,
.pw-auth-link {
  color: var(--pw-accent-light) !important;
  font-size: 13px;
  text-decoration: none;
}
.pw-auth-label-row a:hover,
.pw-auth-link:hover {
  color: #fff !important;
}
.pw-auth .form-control,
.pw-auth select.form-control {
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background-color: #0a0b0d;
  color: #fff;
  font-size: 15px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pw-auth select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a9b0b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.1a.6.6 0 0 1 .8 0L8 10.7l5.6-5.6a.6.6 0 1 1 .8.8l-6 6a.6.6 0 0 1-.8 0l-6-6a.6.6 0 0 1 0-.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.pw-auth select.form-control option {
  background: #0a0b0d;
  color: #fff;
}
.pw-auth .form-control::placeholder {
  color: #5d646c;
}
.pw-auth .form-control:focus {
  border-color: var(--pw-accent);
  background-color: #0a0b0d;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(111, 143, 184, .15);
}
.pw-auth input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 40px #0a0b0d inset;
}
.pw-auth textarea.form-control {
  height: auto;
  min-height: 132px;
  padding: 14px 16px;
  line-height: 1.7;
  resize: vertical;
}
.pw-phrase-input.is-masked {
  -webkit-text-security: disc;
  text-security: disc;
}
@supports not ((-webkit-text-security: disc) or (text-security: disc)) {
  .pw-phrase-input.is-masked {
    color: transparent;
    text-shadow: 0 0 8px rgba(255, 255, 255, .55);
  }
}
.pw-phrase-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pw-accent-light);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
}
.pw-phrase-toggle:hover {
  color: #fff;
}
.pw-phrase-toggle:focus-visible {
  outline: 2px solid var(--pw-accent-light);
  outline-offset: 2px;
}
.pw-phrase-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #6b727a;
}
.pw-phrase-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}
.pw-phrase-count.is-valid {
  color: #8fcaa8;
}
.pw-phrase-count.is-valid::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
}

.pw-auth-pass {
  position: relative;
}
.pw-auth-pass .form-control {
  padding-right: 50px;
}
.pw-auth-eye {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a828b;
  cursor: pointer;
  border-radius: 12px;
}
.pw-auth-eye:hover,
.pw-auth-eye:focus {
  color: #fff;
}
.pw-auth .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  margin: 4px 0 0;
}
.pw-auth .form-check-input {
  float: none;
  margin: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .2);
  background-color: #0a0b0d;
}
.pw-auth .form-check-input:checked {
  background-color: var(--pw-accent-deep);
  border-color: var(--pw-accent);
}
.pw-auth .form-check-label {
  font-size: 14px;
  color: var(--pw-text);
}

.pw-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 1px solid rgba(201, 214, 232, .25);
  border-radius: 999px;
  background: var(--pw-accent-btn);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pw-auth-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(47, 74, 114, .45);
}
.pw-auth-btn:focus-visible,
.pw-auth-eye:focus-visible,
.pw-auth a:focus-visible {
  outline: 2px solid var(--pw-accent-light) !important;
  outline-offset: 2px;
}
.pw-auth-btn[disabled] {
  opacity: .6;
  transform: none;
}

.pw-auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.pw-auth-row a {
  color: var(--pw-accent-light) !important;
  font-size: 14px;
  text-decoration: none;
}
.pw-auth-divider {
  height: 1px;
  background: var(--pw-line);
  margin: 22px 0;
  border: 0;
  opacity: 1;
}
.pw-auth-switch {
  width: 100%;
  max-width: 440px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--pw-line);
  text-align: center;
  font-size: 14px;
}
.pw-auth-switch p {
  margin: 0 0 6px;
}
.pw-auth-switch a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 143, 184, .6);
}
.pw-auth-switch a:hover {
  border-color: #fff;
}
.pw-auth-upline {
  font-size: 13px;
  margin-bottom: 6px;
}

/* Captcha */
.pw-auth .cCaptcha {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 6px 0 4px;
}
.pw-auth .cCaptcha > div {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 50px !important;
  width: auto !important;
  padding: 0 10px;
  border-radius: 12px;
  background: #f2f4f7 !important;
  overflow: hidden;
}
.pw-auth .cCaptcha img {
  height: 40px !important;
  width: auto !important;
  max-width: none;
}
.pw-auth .cCaptcha input {
  flex: 1;
  min-width: 0;
}

/* Status messages */
.pw-auth .alert {
  border-radius: 12px !important;
  font-size: 14px;
  margin-bottom: 18px !important;
}
.pw-auth .alert-danger {
  color: #f1b8b8 !important;
  background: rgba(176, 58, 58, .12) !important;
  border: 1px solid rgba(176, 58, 58, .35) !important;
}
.pw-auth .alert-success {
  color: #b9dcc8 !important;
  background: rgba(64, 140, 100, .12) !important;
  border: 1px solid rgba(64, 140, 100, .35) !important;
}
.pw-auth .alert-info {
  color: var(--pw-accent-light) !important;
  background: rgba(111, 143, 184, .1) !important;
  border: 1px solid rgba(111, 143, 184, .3) !important;
}
.pw-auth [id$=Login_wrapper] > div > span,
.pw-auth [id$=login_dn][style] {
  display: block;
  color: #b9dcc8 !important;
  background: rgba(64, 140, 100, .12) !important;
  border: 1px solid rgba(64, 140, 100, .35) !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  line-height: 1.6;
}
.pw-auth [id$=login_dn][style] {
  color: var(--pw-accent-light) !important;
  background: rgba(111, 143, 184, .1) !important;
  border-color: rgba(111, 143, 184, .3) !important;
}

@media (max-width: 991px) {
  .pw-auth-brand {
    display: none;
  }
  .pw-auth-main {
    justify-content: flex-start;
    padding: 40px 22px 32px;
  }
  .pw-auth-mobile-logo {
    display: block;
    margin-bottom: 40px;
  }
  .pw-auth-mobile-logo img {
    height: 38px;
    width: auto;
  }
  .pw-auth-main .pw-auth-legal {
    display: block;
    margin-top: auto;
    padding-top: 36px;
    text-align: center;
  }
}
@media (max-width: 400px) {
  .pw-auth-card-head h1 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pw-auth-btn {
    transition: none;
  }
}
