/* Self-contained Identity UI styles (no host Tailwind dependency). */

.identity-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #e8eef4;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.identity-card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  padding: 2.5rem;
}

.identity-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.identity-title {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.5rem;
}

.identity-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.identity-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.375rem;
}

.identity-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.5rem 0 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
}

.identity-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.identity-field {
  margin-bottom: 1.25rem;
}

.identity-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.identity-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.identity-eye {
  position: absolute;
  inset: 0 0 0 auto;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  color: #6b7280;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.identity-eye:hover {
  color: #374151;
}

.identity-eye svg {
  width: 1.25rem;
  height: 1.25rem;
}

.identity-btn {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.375rem;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.identity-btn:hover {
  background: #1d4ed8;
}

.identity-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.identity-link {
  color: #2563eb;
  text-decoration: underline;
  font-size: 0.875rem;
}

.identity-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.identity-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.identity-alert {
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.identity-alert ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.identity-status {
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.identity-footer-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.validation-summary-valid {
  display: none;
}

.identity-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: identitySpin 0.7s linear infinite;
}

@keyframes identitySpin {
  to {
    transform: rotate(360deg);
  }
}

.identity-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 1.25rem;
}
