/* SoftSphere Product Authentication - Frontend Stylesheet */
.sspa-auth-widget-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sspa-auth-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .sspa-auth-card {
    padding: 40px 36px;
  }
}

.sspa-auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.sspa-auth-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.sspa-auth-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

.sspa-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sspa-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.sspa-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.sspa-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111827;
  background-color: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sspa-input:focus-visible {
  border-color: #111827;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
}

.sspa-hint {
  font-size: 13px;
  color: #6b7280;
}

.sspa-button {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #111827;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.sspa-button:hover {
  background-color: #1f2937;
}

.sspa-button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.sspa-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sspa-spinner-icon {
  width: 20px;
  height: 20px;
  animation: sspa-spin 1s linear infinite;
}

@keyframes sspa-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Result Cards */
.sspa-result-container {
  margin-top: 28px;
  padding: 24px;
  border-radius: 12px;
  text-align: left;
  animation: sspa-fade-in 0.25s ease-out;
}

@keyframes sspa-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sspa-result-card-valid {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.sspa-result-card-verified {
  background-color: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #6b21a8;
}

.sspa-result-card-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.sspa-result-card-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Status Badges */
.sspa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.sspa-badge-success { background: #dcfce7; color: #15803d; }
.sspa-badge-verified { background: #f3e8ff; color: #7e22ce; }
.sspa-badge-warning { background: #fef3c7; color: #b45309; }
.sspa-badge-danger { background: #fee2e2; color: #b91c1c; }

.sspa-result-headline {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.sspa-result-message {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* Product Meta Card */
.sspa-product-meta {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 16px;
  align-items: center;
}

.sspa-product-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #e5e7eb;
}

.sspa-product-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sspa-product-name {
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

.sspa-product-sku,
.sspa-product-attr {
  font-size: 13px;
  color: #4b5563;
}

.sspa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sspa-hidden {
  display: none !important;
}

