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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0c1426 0%, #1e2a47 50%, #1a2238 100%);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Layout Principal Unificado */
.main-container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 4rem;
  position: relative;
}

.main-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.presentation-content {
  width: 60%;
  max-width: 500px;
  color: white;
  z-index: 1;
  position: relative;
}

/* Logo Section */
.logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.main-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #93c5fd;
}

.main-logo span:first-child {
  font-size: 3rem;
  margin-bottom: 0.3rem;
}

/* Link do logo */
.main-logo-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.main-logo-link:link,
.main-logo-link:visited,
.main-logo-link:active {
  text-decoration: none !important;
}

.main-logo-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.main-logo-link:hover .main-logo {
  color: #60a5fa;
}

.main-logo-link:hover .tagline {
  color: #e2e8f0;
}

.tagline {
  font-size: 1rem;
  color: #cbd5e1;
  font-weight: 300;
  transition: color 0.3s ease;
}

/* Features Section */
.features-section {
  margin-bottom: 1.5rem;
}

.features-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #93c5fd;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  min-width: 2rem;
  text-align: center;
}

.feature-content h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: #f1f5f9;
}

.feature-content p {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.2;
}

/* Screenshots Section */
.screenshots-section {
  text-align: center;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.screenshot-item {
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.02);
}

.screenshot-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.screenshot-placeholder i {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #93c5fd;
}

.screenshot-placeholder span {
  font-size: 0.7rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Cores específicas para cada screenshot */
.screenshot-placeholder.dashboard {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
}

.screenshot-placeholder.reports {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
}

.screenshot-placeholder.studies {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(251, 146, 60, 0.1));
}

.screenshot-placeholder.questions {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
}

.login-card {
  width: 40%;
  max-width: 400px;
  background: rgba(12, 20, 38, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.3);
  z-index: 1;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-header .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.login-header .logo i {
  font-size: 1.5rem;
  color: white;
}

.login-header h1 {
  color: #e2e8f0;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.login-header p {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Alertas */
.alert {
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  animation: slideInDown 0.5s ease-out;
}

.alert-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Formulários */
.form-container {
  margin-bottom: 0.75rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(12, 20, 38, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper.success {
  border-color: #10b981;
}

.input-wrapper.error {
  border-color: #ef4444;
}

.input-wrapper i {
  padding: 0 1rem;
  color: #64748b;
  font-size: 1.1rem;
}

.input-wrapper input {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 1rem;
}

.input-wrapper input::placeholder {
  color: #64748b;
}

.toggle-password {
  background: none;
  border: none;
  padding: 0 1rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #94a3b8;
}

/* Opções do formulário */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}

.forgot-password, .terms-link {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover, .terms-link:hover {
  color: #93c5fd;
}

/* Botões */
.btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

/* Informações de planos */
.plans-info {
  text-align: center;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.plans-info p {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.plans-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.plans-link:hover {
  color: #93c5fd;
}

/* Informações de termos de uso */
.terms-info {
  text-align: center;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.terms-info p {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin: 0;
}

.terms-link {
  color: #6ee7b7;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.terms-link:hover {
  color: #34d399;
  transform: translateY(-1px);
}

.terms-link i {
  font-size: 0.9rem;
}

/* Footer do formulário */
.form-footer {
  text-align: center;
  margin-top: 1rem;
}

.form-footer p {
  color: #94a3b8;
  font-size: 0.8rem;
}

.toggle-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.toggle-link:hover {
  color: #93c5fd;
}

/* Info box para registro */
.register-info {
  margin-bottom: 1.5rem;
}

.info-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.info-box i {
  color: #6ee7b7;
  font-size: 1rem;
  margin-top: 0.1rem;
}

.info-box p {
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Modal de Termos */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(15, 23, 42, 0.95);
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 2rem;
  color: #e2e8f0;
}

.terms-content h3 {
  color: #60a5fa;
  margin: 1.5rem 0 0.75rem 0;
  font-size: 1.1rem;
}

.terms-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.terms-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  text-align: center;
}

/* Animações */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsividade */
@media (max-width: 1024px) {
  body {
    overflow-y: auto !important;
  }
  
  .main-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    min-height: auto;
    align-items: stretch;
  }
  
  .presentation-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .login-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .features-section {
    margin-bottom: 2rem;
  }
  
  .feature-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
  }
  
  .screenshots-section {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto !important;
    height: auto !important;
  }
  
  .main-container {
    padding: 1rem;
    gap: 1.5rem;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .login-card {
    padding: 1.5rem;
  }
  
  .main-logo {
    font-size: 2.5rem;
  }
  
  .main-logo span:first-child {
    font-size: 3rem;
  }
  
  .features-section h2 {
    font-size: 1.5rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
  }
  
  html {
    overflow-y: auto !important;
    height: auto !important;
  }
  
  .main-container {
    padding: 1rem 0.5rem;
    gap: 1rem;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  
  .login-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .main-logo {
    font-size: 2rem;
  }
  
  .main-logo span:first-child {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .features-section h2 {
    font-size: 1.3rem;
  }
  
  .feature-content h3 {
    font-size: 1rem;
  }
  
  .feature-content p {
    font-size: 0.8rem;
  }
}
