:root {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: 'Poppins', sans-serif;
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(to top, #0ba360 0%, #3cba92 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .subtitle {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
}

.validation-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.validation-form {
  width: 100%;
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0d0c22;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  height: 56px;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #0d0c22;
  background-color: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input:focus {
  border-color: #0ba360;
  box-shadow: 0 0 0 4px rgba(11, 163, 96, 0.1);
}

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

.validate-btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(45deg, #0ba360, #3cba92);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(11, 163, 96, 0.3);
}

.validate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 163, 96, 0.4);
}

.validate-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.error-message {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.result-container {
  margin-top: 32px;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-content {
  padding: 32px;
  border-radius: 12px;
  text-align: center;
}

.result-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
}

.result-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
}

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.result-icon.success {
  background: #28a745;
  color: white;
}

.result-icon.error {
  background: #dc3545;
  color: white;
}

.result-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0d0c22;
}

.result-success .result-title {
  color: #155724;
}

.result-error .result-title {
  color: #721c24;
}

.result-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.result-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
}

.result-info-label {
  font-weight: 600;
  color: #6b7280;
}

.result-info-value {
  font-weight: 600;
  color: #0d0c22;
}

.result-success .result-info-value {
  color: #155724;
}

.result-error .result-info-value {
  color: #721c24;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  backdrop-filter: blur(4px);
}

.loading-content {
  background: white;
  padding: 40px 60px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-width: 300px;
}

.loading-content p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  color: #0d0c22;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0ba360;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Responsivo */
@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .validation-card {
    padding: 24px;
  }

  .header h1 {
    font-size: 24px;
  }

  .header .subtitle {
    font-size: 14px;
  }

  .result-content {
    padding: 24px;
  }

  .result-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .result-title {
    font-size: 20px;
  }
}

