:root {
  --primary-color: #00b894;
  --primary-hover: #019170;
  --danger-color: #d63031;
  --danger-hover: #b71c1c;
  --success-color: #00b894;
  --success-hover: #019170;
  --text-primary: #333;
  --text-secondary: #555;
  --bg-primary: #f5f5f5;
  --bg-secondary: #fff;
  --bg-card: #fff;
  --border-color: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark-mode {
  --primary-color: #00b894;
  --primary-hover: #019170;
  --danger-color: #d63031;
  --danger-hover: #b71c1c;
  --success-color: #00b894;
  --success-hover: #019170;
  --text-primary: #eee;
  --text-secondary: #aaa;
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #1e1e1e;
  --border-color: #333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-container {
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
}

.tab-btn.active {
  color: var(--primary-color);
  font-weight: bold;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

input, select {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
  width: 100%;
  margin-bottom: 20px;
}

.btn-danger:hover {
  background-color: var(--danger-hover);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  width: 100%;
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.response {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  line-height: 1.5;
}

#loginResponse, #registerResponse, #purchaseResponse {
  color: var(--text-primary);
  word-break: break-word;
}

#passwordStrength {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

#passwordStrength > div {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s;
}

#passwordStrengthText {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 5px;
}

#passwordExample {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-style: italic;
}

.purchase-section {
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: none;
}

#precoTexto {
  margin: 15px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

#precoValor {
  font-weight: bold;
  color: var(--primary-color);
}

/* Theme switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .auth-container, .purchase-section {
    padding: 15px;
  }
}



/*style success */
.success-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.success-container h2 {
  color: #4CAF50;
  margin-bottom: 1.5rem;
}

.payment-details {
  text-align: left;
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.payment-details p {
  margin: 0.8rem 0;
  font-size: 1rem;
}

.next-steps {
  text-align: left;
  margin: 2rem 0;
}

.next-steps ol {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.next-steps li {
  margin-bottom: 0.5rem;
}


/* Acessibilidade - Esconde visualmente mas mantém para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Melhoria no foco para acessibilidade */
:focus-visible {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

/* Estilo para o conteúdo dos botões */
.btn-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tabs acessíveis */
[role="tab"][aria-selected="true"] {
  font-weight: bold;
  border-bottom: 2px solid;
}

/* Progress bar acessível */
[role="progressbar"] {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

[role="progressbar"] > div {
  height: 100%;
  background: #48bb78;
  transition: width 0.3s ease;
}


/* Estilos para o status de pagamento */
.payment-status {
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.payment-status.loading {
    background-color: rgba(0, 184, 148, 0.1);
    border: 1px solid var(--primary-color);
}

.payment-status.error {
    background-color: rgba(214, 48, 49, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.payment-status.active {
    background-color: rgba(0, 184, 148, 0.1);
    border: 1px solid var(--primary-color);
}

.payment-status.success {
    background-color: rgba(0, 184, 148, 0.1);
    border: 1px solid var(--success-color);
}

.payment-status.warning {
    background-color: rgba(255, 165, 0, 0.1);
    border: 1px solid orange;
}

.payment-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.payment-instructions {
    margin-bottom: 20px;
}

.payment-instructions .small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.payment-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.payment-timer {
    margin: 20px 0;
}

.timer-bar {
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 3px;
    margin-bottom: 10px;
    transition: width 0.1s linear;
}

.success-icon i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 15px;
}


.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: rgba(0, 184, 148, 0.1);
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.payment-status {
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.payment-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
}

.payment-status.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
}

.payment-status.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
}

.payment-status.warning {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid #ff9800;
}

.success-icon i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.payment-info {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: left;
}

.license-info {
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
    text-align: left;
}

.license-info code {
    background-color: var(--bg-primary);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    word-break: break-all;
}

.support-link {
    margin-top: 15px;
    font-size: 0.9rem;
}

.support-link a {
    color: var(--primary-color);
    text-decoration: underline;
}

.small {
    font-size: 0.85rem;
    color: var(--text-secondary);
}