/* =========================================================
   VIVO PIN Protection - Default Styling
   File: assets/vivo-pin.css
   ========================================================= */

/* Wrapper so styling does not leak site-wide */
.vivo-pin-wrapper {
  max-width: 520px;
  margin: 16px 0;
  padding: 18px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.vivo-mpin-wrap h3 {
  font-family: 'Inter' !important;
}

/* Title / intro text (optional if you render it) */
.vivo-pin-title {
  font-size: 18px;
  font-family: 'Inter';
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #0f172a;
}

.vivo-pin-subtitle {
  margin: 0 0 14px 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.45;
}

/* Form layout */
.vivo-pin-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.vivo-pin-label {
  display: block;
  width: 100%;
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

/* Input */
.vivo-pin-input {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #ffffff;
  font-size: 16px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Numeric PIN usability improvements */
.vivo-pin-input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

/* Focus ring (VIVO teal) */
.vivo-pin-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

/* Button */
.vivo-pin-button {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: #14b8a6;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.05s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.18);
}

.vivo-pin-button:hover {
  filter: brightness(0.96);
}

.vivo-pin-button:active {
  transform: translateY(1px);
}

/* Secondary button style (if you add one later) */
.vivo-pin-button--secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: none;
}

/* Status messages */
.vivo-pin-message {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.86);
}

.vivo-pin-error {
  border-color: rgba(185, 28, 28, 0.25);
  background: rgba(185, 28, 28, 0.06);
  color: #7f1d1d;
  font-weight: 650;
}

.vivo-pin-success {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.06);
  color: #14532d;
  font-weight: 650;
}

/* Helper / hint text */
.vivo-pin-help {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

/* Small note below input */
.vivo-pin-note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

/* Ensure it looks decent on mobile */
@media (max-width: 480px) {
  .vivo-pin-wrapper {
    padding: 14px 14px;
  }

  .vivo-pin-form {
    gap: 8px;
  }

  .vivo-pin-button,
  .vivo-pin-input {
    width: 100%;
  }

  .vivo-pin-button {
    justify-content: center;
  }
}