/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f0f2f5;
  color: #323130;
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 40px;
  overflow: hidden;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #0078d4;
  margin-bottom: 8px;
}

.header p {
  color: #605e5c;
  font-size: 14px;
}

/* Steps indicator */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.step.active,
.step.completed {
  opacity: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e1dfdd;
  color: #605e5c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.step.active .step-number {
  background: #0078d4;
  color: white;
}

.step.completed .step-number {
  background: #107c10;
  color: white;
}

.step-label {
  font-size: 11px;
  color: #605e5c;
  white-space: nowrap;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #e1dfdd;
  margin: 0 8px;
  margin-bottom: 20px;
}

/* Step content */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

.step-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #323130;
}

.step-content > p {
  color: #605e5c;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #323130;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8a8886;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.15);
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #8a8886;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 24px;
  }
  .container {
    padding: 20px 12px;
  }
}

/* Password input with toggle */
.password-input {
  position: relative;
}

.password-input input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #605e5c;
  padding: 4px;
}

/* Password requirements */
.password-requirements {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.req {
  font-size: 12px;
  color: #8a8886;
  padding-left: 20px;
  position: relative;
}

.req::before {
  content: '\25CB';
  position: absolute;
  left: 0;
}

.req.met {
  color: #107c10;
}

.req.met::before {
  content: '\2713';
}

.req.unmet {
  color: #d13438;
}

.req.unmet::before {
  content: '\2717';
}

/* OTP input */
.otp-input-group input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: #0078d4;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #106ebe;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Messages */
.error-message {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fde7e9;
  border: 1px solid #d13438;
  border-radius: 6px;
  color: #a4262c;
  font-size: 14px;
}

.result {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
}

.result h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.result.success {
  background: #dff6dd;
  border: 1px solid #107c10;
  color: #0b6a0b;
}

.result.error {
  background: #fde7e9;
  border: 1px solid #d13438;
  color: #a4262c;
}

.result .details {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Success & Error icons */
.success-icon {
  font-size: 64px;
  color: #107c10;
  text-align: center;
  margin: 20px 0;
}

.error-icon {
  font-size: 64px;
  color: #d13438;
  text-align: center;
  margin: 20px 0;
}

/* UPN display */
.upn-display {
  background: #f4f4f4;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Consolas', 'Courier New', monospace;
  text-align: center;
  font-weight: 600;
  margin: 16px 0;
}

/* Countdown */
.countdown {
  text-align: center;
  color: #605e5c;
  font-size: 14px;
  margin-bottom: 16px;
}

.countdown span {
  font-weight: 600;
  color: #0078d4;
}
