:root {
  --pass-ink: #142033;
  --pass-muted: #667386;
  --pass-line: #d8dfeb;
  --pass-blue: #0d5a9e;
  --pass-green: #008b80;
  --pass-paper: #fffdf7;
  --pass-bg: #edf3f8;
  --pass-red: #bd3f38;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.login-revamp-body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--pass-ink);
  background:
    linear-gradient(90deg, rgba(13, 90, 158, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(13, 90, 158, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(0, 139, 128, 0.12), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(13, 90, 158, 0.13), transparent 30%),
    var(--pass-bg);
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%, 100% 100%;
}

.pass-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 34px;
}

.pass-stage {
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
}

.pass-copy {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 10px 0;
}

.pass-copy::before {
  content: "";
  position: absolute;
  width: min(560px, 82%);
  aspect-ratio: 1.6;
  right: 5%;
  top: 15%;
  border: 1px solid rgba(13, 90, 158, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(-18deg, rgba(13, 90, 158, 0.07) 0 2px, transparent 2px 14px);
  transform: rotate(-7deg);
  z-index: -1;
}

.pass-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.pass-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(13, 90, 158, 0.16);
  box-shadow: 0 12px 26px rgba(21, 43, 70, 0.1);
}

.pass-brand strong,
.pass-brand small {
  display: block;
}

.pass-brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.pass-brand small {
  margin-top: 2px;
  color: var(--pass-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.pass-title {
  width: min(720px, 100%);
}

.pass-code,
.ticket-overline {
  display: inline-flex;
  width: fit-content;
  color: var(--pass-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pass-title h1 {
  margin: 18px 0 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 900;
  color: #0d223a;
  max-width: 9.8ch;
}

.pass-title p {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: var(--pass-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.pass-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #bfd0e2;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 34px rgba(21, 43, 70, 0.08);
}

.pass-strip span {
  padding: 12px 15px;
  color: #39506a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-right: 1px dashed #bfd0e2;
}

.pass-strip span:last-child {
  border-right: 0;
  color: var(--pass-green);
}

.pass-ticket {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 253, 247, 0.98)),
    var(--pass-paper);
  border: 1px solid rgba(20, 32, 51, 0.12);
  box-shadow: 0 26px 58px rgba(21, 43, 70, 0.18);
}

.pass-ticket-long {
  align-self: stretch;
}

.pass-ticket::before,
.pass-ticket::after {
  content: "";
  position: absolute;
  left: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pass-bg);
  border-right: 1px solid rgba(20, 32, 51, 0.12);
}

.pass-ticket::before {
  top: 154px;
}

.pass-ticket::after {
  bottom: 128px;
}

.ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed #becbd9;
}

.ticket-top h2 {
  margin: 8px 0 0;
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.ticket-stamp {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 3px solid rgba(13, 90, 158, 0.22);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 18px rgba(21, 43, 70, 0.1);
  transform: rotate(12deg);
}

.ticket-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(-12deg);
}

.ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.ticket-meta span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  background: #eef5fb;
  color: #35506f;
  font-size: 0.76rem;
  font-weight: 800;
}

.login-alert {
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field label {
  display: block;
  margin-bottom: 7px;
  color: #394b62;
  font-size: 0.8rem;
  font-weight: 900;
}

.login-input-wrap {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 40px;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--pass-line);
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-input-wrap.login-input-full {
  grid-template-columns: 42px minmax(0, 1fr);
  padding-right: 12px;
}

.login-input-wrap:focus-within {
  border-color: var(--pass-blue);
  box-shadow: 0 0 0 4px rgba(13, 90, 158, 0.13);
}

.login-input-wrap > i {
  color: #7b899a;
  text-align: center;
}

.login-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pass-ink);
  font-size: 0.94rem;
}

.login-input-wrap input::placeholder {
  color: #9aa6b6;
}

.login-toggle-pass {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #7b899a;
}

.login-toggle-pass:hover {
  color: var(--pass-blue);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--pass-muted);
  font-size: 0.82rem;
}

.login-options a,
.login-actions a {
  color: var(--pass-blue);
  font-weight: 900;
  text-decoration: none;
}

.login-options a:hover,
.login-actions a:hover {
  text-decoration: underline;
}

.form-check-input:checked {
  background-color: var(--pass-blue);
  border-color: var(--pass-blue);
}

.login-primary-btn,
.login-sso-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.login-primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #0a3159, var(--pass-blue));
  box-shadow: 0 16px 26px rgba(13, 90, 158, 0.24);
}

.login-primary-btn:hover,
.login-sso-btn:hover {
  transform: translateY(-1px);
}

.login-sso-btn {
  min-height: 50px;
  gap: 10px;
  padding: 0 14px;
  color: #435366;
  background: #fff;
  border: 1px solid #d6e0ec;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  font-size: 0.95rem;
  font-weight: 800;
}

.login-sso-btn:hover {
  color: #435366;
  border-color: #b8cbe2;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.login-sso-btn .myid-button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f6fd1;
  font-size: 1.05rem;
}

.login-sso-btn .myid-button-text {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.login-sso-btn .myid-button-prefix {
  color: #435366;
  font-weight: 800;
}

.login-sso-btn .myid-wordmark {
  font-size: 1.2em;
  font-weight: 900;
}

.login-sso-btn .myid-wordmark .my {
  color: #1f6fd1;
}

.login-sso-btn .myid-wordmark .id {
  color: #f2b51d;
}

.login-sso-btn .myid-button-suffix {
  color: #364555;
  font-weight: 900;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8490a0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--pass-line);
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.login-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: 12px;
  background: #f4f8fb;
  border: 1px solid #dce5ee;
  font-size: 0.76rem;
  text-align: center;
}

.login-footer {
  color: #8793a3;
  text-align: center;
  font-size: 0.72rem;
}

.success-pulse {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  background: #2f8f5b;
  box-shadow: 0 0 0 rgba(47, 143, 91, 0.45);
  animation: pulseSuccess 1.2s ease-out infinite;
}

@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(47, 143, 91, 0.45); }
  70% { box-shadow: 0 0 0 22px rgba(47, 143, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 143, 91, 0); }
}

@media (max-width: 1000px) {
  .pass-stage {
    grid-template-columns: 1fr;
  }

  .pass-copy {
    min-height: auto;
    gap: 38px;
  }

  .pass-title h1 {
    max-width: 12ch;
  }

  .pass-ticket {
    width: min(520px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .pass-login {
    padding: 18px;
    place-items: start center;
  }

  .pass-title h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .pass-strip {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .pass-strip span {
    border-bottom: 1px dashed #bfd0e2;
  }

  .pass-ticket {
    padding: 22px;
  }

  .ticket-top h2 {
    font-size: 1.72rem;
  }

  .ticket-stamp {
    width: 62px;
    height: 62px;
    padding: 7px;
  }

  .ticket-meta,
  .login-actions {
    grid-template-columns: 1fr;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
