* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  color: #1b1b1b;
  background: #f2f2f2;
}

/* Subtle Microsoft-style background */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, #e8eef7 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, #dce7f5 0%, transparent 50%),
    #f2f2f2;
  z-index: -1;
}

.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
}

.login-box {
  background: #fff;
  width: 100%;
  max-width: 440px;
  padding: 44px 44px 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Microsoft logo (4 squares + wordmark) */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 18px;
  height: 24px;
}

.logo .sq {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.sq-red    { background: #f25022; }
.sq-green  { background: #7fba00; }
.sq-blue   { background: #00a4ef; }
.sq-yellow { background: #ffb900; }

.logo-text {
  margin-left: 8px;
  font-size: 15px;
  color: #5e5e5e;
  font-weight: 600;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1b1b1b;
}

.input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #666;
  padding: 6px 0 8px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  outline: none;
  margin-bottom: 18px;
}

.input:focus {
  border-bottom: 2px solid #0067b8;
  padding-bottom: 7px;
}

.help-links {
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.help-links a {
  color: #0067b8;
  text-decoration: none;
}

.help-links a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.actions.center {
  justify-content: center;
}

.btn {
  display: inline-block;
  border: none;
  background: #0067b8;
  color: #fff;
  padding: 6px 12px;
  min-width: 108px;
  height: 32px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 20px;
}

.btn:hover {
  background: #005a9e;
}

.btn-primary:focus {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.other-signin {
  font-size: 13px;
  color: #1b1b1b;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.other-signin:hover {
  color: #0067b8;
}

.back-row {
  margin-bottom: 12px;
}

.back-link {
  color: #1b1b1b;
  text-decoration: none;
  font-size: 13px;
}

.back-link:hover {
  text-decoration: underline;
}

.step.hidden {
  display: none;
}

/* Footer links */
.page-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 12px 24px;
  font-size: 12px;
  color: #5e5e5e;
  display: flex;
  gap: 20px;
  background: #f2f2f2;
}

.page-footer a {
  color: #5e5e5e;
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.page-footer .dots {
  font-weight: 700;
}

/* Disclaimer banner (always visible) */
.disclaimer-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff4ce;
  border-bottom: 1px solid #d4a847;
  color: #4a3a00;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  z-index: 100;
  font-family: inherit;
}

/* Gotcha reveal */
.gotcha {
  text-align: left;
}

.login-box:has(.gotcha:not(.hidden)) {
  max-width: 640px;
}

.gotcha-header {
  text-align: center;
  margin-bottom: 24px;
}

.gotcha-icon {
  font-size: 56px;
  margin-bottom: 8px;
}

.gotcha h1 {
  font-size: 26px;
  color: #c4314b;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #5e5e5e;
  line-height: 1.5;
}

.red-flags, .tips {
  margin: 20px 0;
}

.red-flags h2, .tips h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1b1b1b;
}

.red-flags ul, .tips ul {
  list-style: none;
  padding: 0;
}

.red-flags li, .tips li {
  padding: 8px 0 8px 24px;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  border-bottom: 1px solid #eee;
}

.red-flags li::before {
  content: "\26a0\fe0f";
  position: absolute;
  left: 0;
  top: 8px;
}

.tips li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  top: 8px;
  color: #107c10;
  font-weight: bold;
}

.red-flags li:last-child,
.tips li:last-child {
  border-bottom: none;
}

.red-flags code {
  background: #f3f3f3;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
  font-family: Consolas, "Courier New", monospace;
}

/* Responsive */
@media (max-width: 500px) {
  .login-box {
    padding: 32px 24px 24px;
  }

  .disclaimer-banner {
    font-size: 12px;
    padding: 6px 10px;
  }

  .login-container {
    padding-top: 60px;
  }
}
