/* Patch layer — only the bits the CDN bundle expects from the live app shell,
   plus the tenant background image. Keeps ms.css untouched. */

#backgroundImage {
  background-image: url("tenant-bg.jpg");
}

/* background layers the real page sets via JS */
.background-image-holder,
.background-image,
.background-overlay {
  display: block;
}

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

body.cb {
  font-family: "Segoe UI Webfont", "Segoe UI", -apple-system, "Helvetica Neue",
               "Lucida Grande", Roboto, Ebrima, "Nirmala UI", Gadugi, sans-serif;
  font-size: 15px;
  color: #1b1b1b;
  margin: 0;
}

/* sign-in box sits vertically centred like the real page */
.full-height { height: 100%; }
.flex-column { height: 100%; }
.win-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 0;
}
.outer { position: absolute; inset: 0; display: table; height: 100%; width: 100%; }
.main-section { display: table-row; }
.middle { display: table-cell; vertical-align: middle; }

/* 2-digit auth code block + spinner for the later steps */
.authnum {
  padding: 14px 16px;
  margin: 0 0 18px;
  background: #f5f9fc;
  border-left: 3px solid #0067b8;
}
.authnum .cap { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: .6px; }
.authnum .num { font-size: 26px; font-weight: 600; letter-spacing: 4px; color: #0b3b5c; }

.phone-note { font-size: 13px; color: #666; margin: 0 0 20px; }

.spin {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot .7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes rot { to { transform: rotate(360deg); } }

.shake { animation: sh .5s ease-in-out; }
@keyframes sh {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* the "signing you in" spinner centred */
.center-spin { text-align: center; padding: 30px 0 10px; }
.center-spin .spin {
  width: 26px; height: 26px; border-width: 3px;
  border-color: #d3d3d3; border-top-color: #0067b8;
}

@media (max-width: 600px) {
  #backgroundImage, .background-overlay { display: none; }
  .outer { position: static; }
  .win-scroll { min-height: auto; padding: 0; }
  .sign-in-box {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    padding: 24px !important;
    margin: 0 !important;
    min-height: calc(100vh - 28px) !important;
  }
}

/* completion screen */
.done-mark { text-align: center; padding: 6px 0 18px; line-height: 0; }
.done-mark svg { display: inline-block; }
#lightbox a.win-button {
  text-decoration: none;
  box-sizing: border-box;
  line-height: 24px;
  color: #fff;
}
