/* vbb.css - Clean Theme based on reference image */
@font-face {
  font-family: "Textos Regular";
  src: url("assets/fonts/Textos-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

:root {
  --livelo-pink: #df0a78;
  --text-black: #000000;
  --input-bg: #f3f4f6;
  --input-border: #cccccc;
  --button-disabled-bg: #e5e7eb;
  --button-disabled-text: #9ca3af;
  --font-family: "Textos Regular", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 24px;
  border-top: 7px solid #f8d117;
}

.ola {
  margin-bottom: 5px;
}

.yellow-highlight {
  background-color: #ffe600;
  padding: 0 5px;
}

.app-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

/* Logos */
.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  width: 100%;
  overflow: visible;
  /* Garante que a logo grande no início não suma */
}

.logo-livelo {
  height: 100px;
  width: auto;
}

.logo-bb {
  height: 85px;
  width: auto;
}

.animated-page .logo-livelo,
.animated-page .logo-bb {
  opacity: 0;
  will-change: transform, opacity;
}

.animated-page .logo-livelo {
  animation: logoEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animated-page .logo-bb {
  animation: logoEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Text Section */
.text-section {
  margin-bottom: 40px;
  text-align: center;
}

.animated-page .text-section {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.2s forwards;
}

.text-section p {
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-black);
}

.text-section .bold {
  font-weight: 800;
}

.text-section strong {
  font-weight: 700;
}

/* Form Section */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.animated-page .form-section {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.4s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  text-align: left;
}

.input-group input {
  width: 100%;
  height: 52px;
  background-color: var(--input-bg);
  border: none;
  border-bottom: 2px solid var(--input-border);
  border-radius: 8px 8px 0 0;
  padding: 0 16px;
  font-size: 18px;
  color: var(--text-black);
  outline: none;
  transition: border-color 0.3s;
  text-align: left;
}

.input-group input:focus {
  border-bottom-color: var(--livelo-pink);
}

.input-group input::placeholder {
  color: #9ca3af;
}

/* Button */
button#btn-submit {
  margin-top: 20px;
  height: 56px;
  width: 100%;
  background-color: var(--button-disabled-bg);
  color: var(--button-disabled-text);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

button#btn-submit:not([disabled]) {
  background-color: var(--livelo-pink);
  color: #ffffff;
  cursor: pointer;
}

/* Error State */
.input-group.has-error input {
  border-bottom-color: #ef4444;
}

.error-message {
  display: none;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

.input-group.has-error .error-message {
  display: block;
}

.ticket-header {
  background-color: #ffe600;
  padding: 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-header-logo {
  height: 45px;
}

.ticket-header-title {
  font-family: "Titulos-Bold";
  font-size: 1.2rem;
  color: #333;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.watermark-logo {
  height: 35px;
  opacity: 0.2;
}

.header-title {
  font-family: "Titulos-Bold";
  font-size: 1.2rem;
  color: #333;
}

.watermark-logo {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.2;
  height: 40px;
}

.ticket-logo-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  height: 45px;
  margin-top: 10px;
}

.logo {
  height: 50px;
}

.ticket-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem -10px;
  width: calc(100% + 20px);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.success-icon {
  color: #0066ff;
  margin-right: 1rem;
}

.ticket-title {
  color: #0066ff;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.ticket-info {
  display: grid;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  color: #0066ff;
}

.info-label {
  color: #333;
}

.erro-span {
  color: red;
}

.info-value {
  text-align: right;
}

.ticket-footer {
  text-align: center;
  color: #0066ff;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.ticket-container::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background-image:
    linear-gradient(
      45deg,
      transparent 33.333%,
      white 33.333%,
      white 66.667%,
      transparent 66.667%
    ),
    linear-gradient(
      -45deg,
      transparent 33.333%,
      white 33.333%,
      white 66.667%,
      transparent 66.667%
    );
  background-size: 20px 40px;
  background-position: 0 -20px;
}

/* ── Modal Boas-vindas ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
  animation: overlayIn 0.3s ease;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 36px;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.modal-welcome {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.modal-logo {
  height: 28px;
  width: auto;
}

.modal-pontos {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.grid-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.grid-item span {
  font-size: 11px;
  text-align: center;
  color: #333;
  font-weight: 600;
  line-height: 1.2;
}

.modal-btn {
  width: 100%;
  height: 52px;
  background: var(--livelo-pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-btn:hover {
  opacity: 0.88;
}

/* ── Alerta Personalizado (Aviso) ── */
.aviso-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.aviso-overlay.active {
  display: flex;
  animation: overlayIn 0.25s ease;
}

.aviso-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 340px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.aviso-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.aviso-close:hover {
  background: #d1d5db;
}

.aviso-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.aviso-icon {
  height: 28px;
  width: auto;
}

.aviso-title span {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.aviso-msg {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 22px;
}

.aviso-btn {
  width: 100%;
  height: 50px;
  background: #ffe600;
  color: #111;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.aviso-btn:hover {
  opacity: 0.88;
}
