:root {
  --page-bg: #ffffff;
  --orange: #ea9a2a;
  --ink: #0f172a;

  --card-w: 440px;
  --rad: 28px;
  --shadow: 0 22px 36px rgba(0, 0, 0, 0.2);

  --btn1: #163a5b;
  --btn2: #1f4e7a;
  --ring: #60a5fa;
  --bento-shift: 40px;
}

html,
body {
  height: 100%;
  background: var(--page-bg);
  color: var(--ink);
}
footer {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* CARD */
.card {
  width: min(92vw, var(--card-w));
  border-radius: var(--rad);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* TOP MEDIA */
.media {
  position: relative;
  background: var(--orange);
  aspect-ratio: 10/9;
  overflow: hidden;
}
.media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 86%);
}

.media-inner {
  position: absolute;
  inset: 16px 16px 24% 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-wrap {
  position: relative;
  transform: translateY(var(--bento-shift));
}

/* Web default */
.bento {
  width: clamp(180px, 36vw, 320px);
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.22));
  -webkit-user-drag: none;
  user-select: none;
  animation: float 4.4s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Smoke */
.smoke {
  position: absolute;
  left: 58%;
  top: -12%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
  filter: blur(0.8px);
}
.smoke span {
  position: absolute;
  left: -16px;
  width: 48px;
  height: 78px;
  opacity: 0;
  background: radial-gradient(
      52% 72% at 50% 60%,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0) 62%
    ),
    radial-gradient(
      68% 46% at 62% 30%,
      rgba(255, 255, 255, 0.66),
      rgba(255, 255, 255, 0) 62%
    ),
    radial-gradient(
      46% 62% at 30% 52%,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0) 62%
    );
  border-radius: 45% 55% 55% 45%/60% 40% 60% 40%;
  transform: rotate(8deg) scaleX(0.66);
  animation: plume 3.7s ease-in-out infinite;
}
.smoke span:nth-child(2) {
  left: 2px;
  animation-delay: 0.28s;
  transform: rotate(0deg) scaleX(0.66);
}
.smoke span:nth-child(3) {
  left: 22px;
  animation-delay: 0.56s;
  transform: rotate(-6deg) scaleX(0.64);
}
.smoke span:nth-child(4) {
  left: -30px;
  animation-delay: 0.84s;
  transform: rotate(12deg) scaleX(0.62);
}
.smoke span:nth-child(5) {
  left: 40px;
  animation-delay: 1.12s;
  transform: rotate(-10deg) scaleX(0.64);
}
.smoke span:nth-child(6) {
  left: -48px;
  animation-delay: 1.4s;
  transform: rotate(14deg) scaleX(0.62);
}
@keyframes plume {
  0% {
    transform: translate(0, 12px) rotate(8deg) scaleX(0.64);
    opacity: 0;
  }
  18% {
    opacity: 0.26;
  }
  50% {
    transform: translate(6px, -34px) rotate(0deg) scaleX(0.7);
    opacity: 0.44;
  }
  100% {
    transform: translate(-6px, -74px) rotate(-8deg) scaleX(0.74);
    opacity: 0;
  }
}

/* BODY */
.body {
  padding: 18px 18px 50px;
  text-align: center;
}

.title {
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.06;
  font-weight: 900;
  color: #111;
  text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff,
    1.5px 1.5px #fff, -1.5px 1.5px #fff, 1.5px -1.5px #fff, -1.5px -1.5px #fff,
    0 12px 20px rgba(0, 0, 0, 0.12);
  margin: 6px 0 10px;
}

.sub {
  color: #6b7280;
  line-height: 1.6;
  font-size: clamp(13px, 3.4vw, 14px);
  margin-bottom: 18px;
}
.cta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.sso-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, var(--btn1), var(--btn2));
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(15px, 4.2vw, 16px);
  padding: 14px 22px;
  border-radius: 16px;
  box-shadow: 0 16px 26px rgba(22, 58, 91, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.06s ease, filter 0.15s ease;
}
.sso-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.sso-btn:active {
  transform: translateY(0);
}
.sso-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 0 0 7px var(--ring);
}
.sso-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.28);
  animation: ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  from {
    width: 0;
    height: 0;
    opacity: 0.55;
  }
  to {
    width: 220px;
    height: 220px;
    opacity: 0;
  }
}
.ms-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Mobile */
@media (max-width: 640px) {
  .wrap {
    padding: 0;
  }
  .card {
    width: 100vw;
    min-height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }
  .bento {
    width: clamp(220px, 44vw, 400px);
  }
  .body {
    padding: 20px 18px 28px;
  }
}

/* Desktop */
@media (min-width: 641px) {
  .body {
    padding: 28px 28px 30px;
  }
  .bento {
    width: clamp(225px, 45vw, 400px);
  }
  .title {
    font-size: clamp(35px, 8.75vw, 45px);
  }
  .ms-logo {
    width: 22px;
    height: 22px;
  }
  .sub {
    font-size: 18px;
  }
  .wrap {
    padding: 0;
  }
  .media {
    aspect-ratio: 10 / 3.4;
  }
  .sso-btn {
    font-size: 20px;
    padding: 18px 28px;
    border-radius: 20px;
  }
  .card {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento,
  .smoke span {
    animation: none !important;
  }
  .sso-btn,
  .sso-btn:hover,
  .sso-btn:active {
    transform: none !important;
  }
}

footer {
  text-align: center;
  font-size: 13px;
  color: #6B7280;
  margin-top: 20px; 
}