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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: #f2f2f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: #fff;
  width: 440px;
  max-width: 90vw;
  padding: 44px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ms-logo {
  width: 108px;
  height: 24px;
  margin-bottom: 16px;
}

.login-container h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 4px;
}

.login-container .subtitle {
  font-size: 13px;
  color: #1b1b1b;
  margin-bottom: 24px;
}

.email-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  cursor: pointer;
}

.email-display .back-arrow {
  font-size: 14px;
  color: #1b1b1b;
}

.email-display .email-text {
  font-size: 13px;
  color: #1b1b1b;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  font-size: 15px;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid #767676;
  outline: none;
  background: transparent;
  color: #1b1b1b;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-bottom-color: #0067b8;
}

.form-group input::placeholder {
  color: #767676;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: #0067b8;
  color: #fff;
  border: none;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #005da6;
}

.link-row {
  margin-top: 16px;
}

.link-row a {
  font-size: 13px;
  color: #0067b8;
  text-decoration: none;
}

.link-row a:hover {
  text-decoration: underline;
  color: #005da6;
}

.step { display: none; }
.step.active { display: block; }

.footer-text {
  margin-top: 32px;
  font-size: 12px;
  color: #767676;
  text-align: center;
}

/* Password step: "Forgot my password" link */
.forgot-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #0067b8;
  text-decoration: none;
}
.forgot-link:hover {
  text-decoration: underline;
}

/* MFA page styles */
.mfa-body {
  margin-top: 16px;
}

.mfa-icon {
  margin-bottom: 16px;
}

.mfa-instruction {
  font-size: 13px;
  color: #1b1b1b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.mfa-number-display {
  font-size: 36px;
  font-weight: 700;
  color: #1b1b1b;
  text-align: center;
  padding: 16px 0;
  margin-bottom: 16px;
  background: #f5f5f5;
  border-radius: 4px;
}

.mfa-code-input {
  text-align: center;
  font-size: 18px !important;
  letter-spacing: 4px;
}

.mfa-alt-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e1e1e1;
}

.mfa-alt-link {
  font-size: 13px;
  color: #0067b8;
  text-decoration: none;
  cursor: pointer;
}

.mfa-alt-link:hover {
  text-decoration: underline;
  color: #005da6;
}

.mfa-sms-option {
  margin-top: 16px;
}

/* Error message */
.error-message {
  background: #fed9cc;
  border: 1px solid #f7630c;
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #ca5010;
}

.error-message a {
  color: #ca5010;
  text-decoration: underline;
  font-weight: 500;
}

.error-message a:hover {
  color: #8a3605;
}
