/* Mandatory Password Change Modal Styles */

.change-password-page {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.change-password-page[aria-hidden="true"] {
  display: none;
}

.change-password-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-head {
  padding: 24px;
  border-bottom: 1px solid #ddd;
  background: linear-gradient(180deg, #f9f9f9, #f5f5f5);
}

.modal-head div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-head .eyebrow {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  color: #282828;
}

.modal-body {
  padding: 24px;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.alert p {
  margin: 0;
}

.alert-warning {
  background-color: #fff8e1;
  border: 1px solid #ffe082;
  color: #8a6000;
}

.alert-error {
  background-color: #ffebee;
  border: 1px solid #f48482;
  color: #c62828;
}

.alert-info {
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  color: #1565c0;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #333;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  background-color: white;
  color: #333;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: #1a3a5c;
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-grid input[readonly] {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.primary {
  background-color: #1a3a5c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primary:hover:not(:disabled) {
  background-color: #0f2540;
}

.primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.ghost {
  background-color: transparent;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ghost:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

/* Loading state */
.primary:disabled {
  opacity: 0.6;
}

.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background-color: #ddd;
  border-radius: 2px;
}

.strength-bar.weak {
  background-color: #f44336;
}

.strength-bar.fair {
  background-color: #ff9800;
}

.strength-bar.good {
  background-color: #8bc34a;
}

.strength-bar.strong {
  background-color: #4caf50;
}
