/* Microsoft sign-in page — scoped to the login route */

.tt-login-page {
  --tt-login-bg: #0f172a;
  --tt-login-fg: #f8fafc;
  --font-inter: "Inter", ui-sans-serif, system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  min-height: 100vh;
  min-width: 0;
  margin: 0;
  background-color: var(--tt-login-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--tt-login-fg);
  font-family: var(--font-inter);
}

.tt-login-page__hero {
  display: none;
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
}

@media (min-width: 1024px) {
  .tt-login-page__hero {
    display: flex;
  }
}

.tt-login-page__hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgb(15 23 42 / 0.35) 0%, rgb(15 23 42 / 0.05) 55%, transparent 100%);
}

.tt-login-page__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-width: 0;
  flex-shrink: 0;
  padding: 3rem 2.5rem;
  border-left: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(15 23 42 / 0.82);
  backdrop-filter: blur(14px);
  box-shadow: -12px 0 48px rgb(0 0 0 / 0.25);
}

@media (max-width: 1023px) {
  .tt-login-page__panel {
    border-left: none;
    background: rgb(15 23 42 / 0.88);
  }
}

@media (min-width: 1024px) {
  .tt-login-page__panel {
    width: 100%;
    max-width: 32.5rem;
  }
}

.tt-login-page__content {
  width: 100%;
  max-width: 25rem;
}

.tt-login-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.2vw + 0.85rem, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tt-login-fg);
}

.tt-login-page__heading {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tt-login-fg);
}

.tt-login-page__subtitle {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(226 232 240 / 0.9);
}

.tt-login-page__welcome {
  margin-bottom: 1.5rem;
}

.tt-btn-ms {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #8a8886;
  background: #ffffff;
  color: #323130;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.tt-btn-ms:hover:not(:disabled):not(.tt-btn-ms--redirecting) {
  background: #f3f2f1;
  border-color: #323130;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
}

.tt-btn-ms--redirecting,
.tt-btn-ms:disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.tt-btn-ms__logo {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.tt-btn-secondary {
  display: flex;
  width: 100%;
  margin-top: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.tt-btn-secondary:hover {
  background: rgb(255 255 255 / 0.08);
}

.tt-login-page__config-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgb(253 230 138 / 0.9);
}

.tt-login-page__config-hint p {
  margin: 0;
}

.tt-login-page__config-hint p + p {
  margin-top: 0.5rem;
}

.tt-login-page__config-hint code {
  color: rgb(254 243 199 / 0.95);
  word-break: break-all;
}

.tt-login-page__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0;
  font-size: 0.875rem;
  color: rgb(203 213 225 / 0.75);
}

.tt-login-page__divider::before,
.tt-login-page__divider::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.tt-login-page__notice {
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.08);
}

.tt-login-page__notice p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(226 232 240 / 0.92);
}

.tt-login-page__notice strong {
  font-weight: 600;
}

.tt-login-hidden {
  display: none;
}
