/* Reset e variáveis CSS */
:root {
  --background: #0c0c0e;
  --foreground: #ffffff;
  --card: #1a1a1c;
  --card-foreground: #ffffff;
  --primary: #dc2626;
  --primary-foreground: #ffffff;
  --secondary: #2a2a2e;
  --secondary-foreground: #ffffff;
  --muted: #2a2a2e;
  --muted-foreground: #a0a0a0;
  --accent: #dc2626;
  --accent-foreground: #ffffff;
  --border: #2a2a2e;
  --input: #2a2a2e;
  --ring: #dc2626;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --green-500: #22c55e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Montserrat', 'Nunito', ui-sans-serif, system-ui, sans-serif;
  scroll-behavior: smooth;
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

.font-nunito {
  font-family: 'Nunito', sans-serif;
}

.font-roboto {
  font-family: 'Roboto', sans-serif;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

/* Container para as telas */
.container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    overflow: hidden;
}

/* Estilos para as telas */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.loading-screen {
    position: fixed !important;
    padding: 0 !important;
    z-index: 9999 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 40px;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #dc2626;
    border-right: 3px solid #dc2626;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border: 2px solid transparent;
    border-bottom: 2px solid #ff4757;
    border-left: 2px solid #ff4757;
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.loading-subtitle {
    color: #cccccc;
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Estilos para a primeira tela */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 16px;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #BFBFBF;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 24px;
}

.action-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF4444, #CC0000);
    border: none;
    border-radius: 75px;
    padding: 16px 32px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

/* Estilos específicos para a segunda tela */
.part2-image {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
}

.part2-title {
    display: block;
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 16px 0 8px 0;
    line-height: 25px;
}

.part2-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.4;
    width: 100%;
}

.part2-button {
    width: 100%;
    padding: 18px 0;
    background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    color: white;
    border: none;
    border-radius: 75px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: 'Montserrat', sans-serif;
}

.part2-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 68, 68, 0.3);
}

/* Estilos específicos para a terceira tela */
.part3-image {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
}

.part3-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: #ffffff;
    margin: 16px 0 24px 0;
    width: 100%;
}

.part3-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 60px;
    padding: 18px 0;
    margin: 0 auto 8px;
    border: none;
    border-radius: 75px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.part3-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 68, 68, 0.3);
}

/* Estilos específicos para a quarta tela */
.part4-image {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
}

.part4-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: #ffffff;
    margin: 16px 0 24px 0;
    width: 100%;
}

.part4-buttons-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.part4-button {
    width: 55%;
    padding: 18px 0;
    border: none;
    border-radius: 75px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-icon {
    font-size: 28px;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Estilos específicos para a quinta tela */
.screen-5 {
    background-color: var(--background);
    padding: 16px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}

.part5-top-image {
    width: 30%;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    display: block;
}

.part5-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    margin: 16px 0 24px 0;
}

.part5-card {
    background: var(--card);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.part5-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #BFBFBF;
    margin-bottom: 24px;
    line-height: 1.4;
}

.part5-input-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
    align-self: flex-start;
}

.part5-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    background: var(--input);
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 24px;
    outline: none;
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.part5-input:focus {
    border-color: var(--primary);
}

.part5-input::placeholder {
    color: #a0a0a0;
}

.part5-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    border-radius: 75px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
}

.button-lock-icon {
    font-size: 20px;
    color: white;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.button-main-text {
    font-size: 16px;
    font-weight: 600;
    transition: all 0.5s ease;
}

.button-sub-text {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    transition: all 0.5s ease;
    margin-left: auto;
    text-align: right;
}

.part5-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 68, 68, 0.3);
}

.part5-security {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
    color: #a0a0a0;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.part5-lock-icon {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px; /* Adiciona um pequeno espaçamento entre o ícone e o texto */
}

.part5-security-text {
    line-height: 1.3;
    text-align: center;
}

.part4-button-female {
    background: linear-gradient(215.25deg, rgb(255, 78, 89) 41.35%, rgb(252, 0, 16) 79.29%);
}

.part4-button-male {
    background: linear-gradient(215.25deg, rgb(107, 108, 254) 41.35%, rgb(54, 55, 255) 79.29%);
}

.part4-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Layout utilities */
.min-h-screen {
  min-height: 100vh;
}

.bg-dark {
  background-color: var(--background);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.p-4 {
  padding: 1rem;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Card components */
.card {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-content {
  padding: 1.5rem;
}

.bg-card {
  background-color: var(--card);
}

.border-border {
  border-color: var(--border);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Typography */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Colors */
.text-white {
  color: #ffffff;
}

.text-red-400 {
  color: var(--red-400);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-green-500 {
  color: var(--green-500);
}

.bg-red-600 {
  background-color: var(--red-600);
}

.bg-red-700 {
  background-color: var(--red-700);
}

.bg-input {
  background-color: var(--input);
}

/* Sizing */
.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-20 {
  width: 5rem;
}

.h-20 {
  height: 5rem;
}

/* Border radius */
.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Padding */
.pb-8 {
  padding-bottom: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

/* Input styles */
.input {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background-color: var(--input);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.input::placeholder {
  color: var(--muted-foreground);
}

.placeholder-muted-foreground::placeholder {
  color: var(--muted-foreground);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--red-600);
  color: var(--primary-foreground);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--red-700);
}

/* Spinner animation */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility classes */
.hidden {
  display: none;
}

.block {
  display: block;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

/* Avatar styles */
.avatar {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}

.avatar img {
  aspect-ratio: 1;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.avatar-fallback {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-destructive {
  background-color: #fecaca;
  color: #991b1b;
}

/* Progress bar */
.progress {
  position: relative;
  height: 1rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: var(--secondary);
}

.progress-indicator {
  height: 100%;
  width: 100%;
  flex: 1;
  background-color: var(--primary);
  transition: all 0.2s;
}

/* Responsive design */
@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Focus states */
.focus-border-red:focus {
  border-color: var(--red-500);
}

.focus-ring-red:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Loading states */
.loading {
  opacity: 0.7;
  cursor: wait;
}

/* Garantir que botões sejam sempre clicáveis */
button, .btn, .action-button, .part2-button, .part3-button, .part4-button, .part5-button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

button:disabled, .btn:disabled {
  pointer-events: auto !important;
  cursor: not-allowed !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Modal (Username Help) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 8px 16px;
}

.modal-icon-alert {
  width: 28px;
  height: 28px;
  color: var(--red-500);
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.modal-body {
  padding: 8px 16px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

.modal-icon-error {
  width: 22px;
  height: 22px;
  color: var(--red-500);
}

.modal-icon-success {
  width: 22px;
  height: 22px;
  color: var(--green-500);
}

.modal-footer {
  padding: 16px;
}

.modal-ok-button {
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 12px rgba(255, 71, 87, 0.35);
}

.modal-ok-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(255, 71, 87, 0.45);
}

/* Timer styles */
.timer-urgent {
  background-color: var(--red-600);
  color: white;
  border: none;
}

/* Form validation */
.input:invalid {
  border-color: var(--red-500);
}

.input:valid {
  border-color: var(--green-500);
}

/* Hover effects */
.hover-scale:hover {
  transform: scale(1.02);
  transition: transform 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}