* {
  box-sizing: border-box;
}

:root {
  --bg: #050b14;
  --card: rgba(11, 23, 40, 0.78);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f8fc;
  --muted: #9baabd;
  --blue: #4aa3ff;
  --blue-2: #1677ff;
  --orange: #ff9900;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  overflow: hidden;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(20, 102, 190, .16), transparent 38%),
    linear-gradient(135deg, #030810 0%, #081321 48%, #040911 100%);
}

.grid {
  position: absolute;
  inset: -20%;
  opacity: .22;
  background-image:
    linear-gradient(rgba(91, 160, 220, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 160, 220, .08) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(700px) rotateX(62deg) translateY(18%);
  transform-origin: center bottom;
  animation: gridMove 18s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .35;
  animation: float 9s ease-in-out infinite;
}

.orb-one {
  width: 380px;
  height: 380px;
  left: -130px;
  top: -110px;
  background: radial-gradient(circle, rgba(22,119,255,.55), transparent 68%);
}

.orb-two {
  width: 430px;
  height: 430px;
  right: -170px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(255,153,0,.28), transparent 68%);
  animation-delay: -4s;
}

.particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(151, 205, 255, .7);
  box-shadow: 0 0 14px rgba(74,163,255,.8);
  animation: particle 7s linear infinite;
}

.particles span:nth-child(1) { left: 8%; top: 25%; animation-delay: -1s; }
.particles span:nth-child(2) { left: 19%; top: 74%; animation-delay: -4s; }
.particles span:nth-child(3) { left: 31%; top: 17%; animation-delay: -2s; }
.particles span:nth-child(4) { left: 43%; top: 84%; animation-delay: -6s; }
.particles span:nth-child(5) { left: 57%; top: 12%; animation-delay: -3s; }
.particles span:nth-child(6) { left: 69%; top: 70%; animation-delay: -5s; }
.particles span:nth-child(7) { left: 79%; top: 24%; animation-delay: -2.5s; }
.particles span:nth-child(8) { left: 89%; top: 58%; animation-delay: -1.5s; }
.particles span:nth-child(9) { left: 54%; top: 51%; animation-delay: -4.5s; }
.particles span:nth-child(10) { left: 14%; top: 48%; animation-delay: -5.5s; }

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.card {
  width: min(560px, 100%);
  padding: 42px 46px 25px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255,255,255,.08);
  animation: cardIn .8s cubic-bezier(.2,.8,.2,1) both;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 42px;
}

.aws-logo {
  color: var(--orange);
  width: 92px;
  text-align: center;
  animation: logoIn .7s ease both;
}

.aws-text {
  display: block;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 24px;
}

.aws-logo svg {
  width: 76px;
  height: 24px;
  margin-top: -1px;
}

.divider {
  width: 1px;
  height: 46px;
  background: rgba(255,255,255,.14);
}

.proclink-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: logoIn .7s .1s ease both;
}

.proclink-group-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.proclink-logo-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
}

.proclink-main-logo {
  width: 125px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.proclink-logo strong {
  display: block;
  font-size: 20px;
  letter-spacing: 1.5px;
  line-height: 20px;
}

.proclink-logo small {
  display: block;
  margin-top: 4px;
  color: #8ea0b5;
  font-size: 7px;
  letter-spacing: 1px;
}

.proclink-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  transform: rotate(45deg);
}

.proclink-mark i {
  display: block;
  border-radius: 5px;
  background: linear-gradient(135deg, #45b9ff, #1677ff);
  box-shadow: 0 0 14px rgba(54, 159, 255, .25);
}

.proclink-mark i:nth-child(2),
.proclink-mark i:nth-child(3) {
  opacity: .7;
}

.hero {
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(74,163,255,.2);
  border-radius: 999px;
  background: rgba(74,163,255,.07);
  color: #9fc9f5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  animation: fadeUp .7s .15s ease both;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43e39b;
  box-shadow: 0 0 12px rgba(67,227,155,.8);
  animation: pulse 2s infinite;
}

h1 {
  margin: 20px 0 12px;
  font-size: clamp(38px, 7vw, 56px);
  line-height: .98;
  letter-spacing: -2.7px;
  animation: fadeUp .7s .25s ease both;
}

h1 span {
  background: linear-gradient(90deg, #fff, #83bfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 410px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  animation: fadeUp .7s .35s ease both;
}

.signin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #edf4fc);
  color: #17202d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  animation: fadeUp .7s .45s ease both;
  overflow: hidden;
}

.signin::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg);
  animation: shine 4s ease-in-out infinite;
}

.signin:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

.signin:active {
  transform: translateY(0);
}

.signin.loading {
  pointer-events: none;
  opacity: .8;
}

.microsoft-icon {
  position: relative;
  display: grid;
  grid-template-columns: 9px 9px;
  grid-template-rows: 9px 9px;
  gap: 2px;
  width: 20px;
  height: 20px;
}

.microsoft-icon i:nth-child(1) { background: #f35325; }
.microsoft-icon i:nth-child(2) { background: #81bc06; }
.microsoft-icon i:nth-child(3) { background: #05a6f0; }
.microsoft-icon i:nth-child(4) { background: #ffba08; }

.arrow {
  position: absolute;
  right: 21px;
  font-size: 22px;
  transition: transform .2s ease;
}

.signin:hover .arrow {
  transform: translateX(4px);
}

.security {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  text-align: left;
  animation: fadeUp .7s .55s ease both;
}

.shield {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  background: rgba(67,227,155,.08);
}

.shield svg {
  width: 19px;
  fill: none;
  stroke: #55e8a4;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security strong {
  display: block;
  font-size: 11px;
}

.security small {
  display: block;
  margin-top: 3px;
  color: #7f91a7;
  font-size: 10px;
}

footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 32px;
  color: #607188;
  font-size: 10px;
  animation: fadeUp .7s .65s ease both;
}

.footer-separator {
  color: #314154;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(-10px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(35px, 25px, 0) scale(1.06); }
}

@keyframes gridMove {
  from { transform: perspective(700px) rotateX(62deg) translateY(18%); }
  to { transform: perspective(700px) rotateX(62deg) translateY(24%); }
}

@keyframes particle {
  0% { opacity: 0; transform: translateY(18px) scale(.7); }
  20%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-65px) scale(1.2); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67,227,155,.45); }
  50% { box-shadow: 0 0 0 7px rgba(67,227,155,0); }
}

@keyframes shine {
  0%, 45% { left: -80%; }
  70%, 100% { left: 140%; }
}

@media (max-width: 600px) {
  .page { padding: 16px; }
  .card { padding: 30px 22px 21px; border-radius: 22px; }
  .brand { gap: 13px; margin-bottom: 32px; }
  .aws-logo { width: 70px; }
  .aws-text { font-size: 26px; }
  .proclink-logo strong { font-size: 16px; }
  .proclink-logo small { font-size: 6px; }
  .proclink-mark { width: 30px; height: 30px; }
  h1 { font-size: 42px; }
  footer { flex-direction: column; align-items: center; gap: 3px; }
  .footer-separator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
