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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #4f46e5;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: #4f46e5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: #4f46e5;
  border: 2px solid #4f46e5;
}

.btn-secondary:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background-image: linear-gradient( 90.2deg,  rgba(1,47,95,1) -0.4%, rgba(56,141,217,1) 106.1% );
  color: #ffffff;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}



.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fbbf24;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero Graphic */
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.img {
  animation: float 3s ease-in-out infinite;
}

.ballot-slot {
  width: 150px;
  height: 8px;
  background: #475569;
  margin: 30px auto;
  border-radius: 4px;
}

.ballot-papers {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.ballot-paper {
  width: 120px;
  height: 80px;
  background: white;
  margin-bottom: 5px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Candidates Section */
.candidates {
  padding: 80px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #64748b;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.candidate-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.candidate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.candidate-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.candidate-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #4f46e5;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.candidate-grade {
  color: #64748b;
  margin-bottom: 8px;
}

.candidate-party {
  background: #4f46e5;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.candidate-slogan {
  font-style: italic;
  color: #4f46e5;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.candidate-proposals h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1e293b;
}

.candidate-proposals ul {
  list-style: none;
}

.candidate-proposals li {
  padding: 6px 0;
  color: #64748b;
  position: relative;
  padding-left: 20px;
}

.candidate-proposals li:before {
  content: "•";
  color: #4f46e5;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.candidate-support {
  margin-top: 20px;
}

.support-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.support-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width 0.3s ease;
}

.support-text {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* Info Section */
.info {
  padding: 80px 0;
  background: #f8fafc;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.info-card ul {
  list-style: none;
  text-align: left;
}

.info-card li {
  padding: 8px 0;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.info-card li:last-child {
  border-bottom: none;
}

/* Voting Styles */
.voting-section {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

.voting-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.voting-icon {
  font-size: 3rem;
}

.voting-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
}

.voting-form {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

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

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.form-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.candidates-voting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.voting-candidate-card {
  position: relative;
}

.candidate-radio {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.candidate-label {
  display: block;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  background: white;
}

.candidate-label:hover {
  border-color: #4f46e5;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
  transform: translateY(-2px);
}

.candidate-radio:checked + .candidate-label {
  border-color: #4f46e5;
  background: #f0f9ff;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

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

.candidate-content .candidate-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.candidate-content .candidate-name {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.candidate-content .candidate-grade {
  margin-bottom: 12px;
}

.candidate-content .candidate-party {
  display: inline-block;
  margin-bottom: 16px;
}

.candidate-content .candidate-slogan {
  font-style: italic;
  color: #4f46e5;
  font-weight: 600;
  margin-bottom: 20px;
}

.candidate-content .candidate-proposals {
  text-align: left;
}

.candidate-content .candidate-proposals h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #1e293b;
}

.candidate-content .candidate-proposals ul {
  list-style: none;
}

.candidate-content .candidate-proposals li {
  padding: 4px 0;
  color: #64748b;
  font-size: 0.9rem;
}

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

.vote-confirmation {
  background: white;
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.confirmation-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.vote-confirmation h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 16px;
}

.vote-confirmation p {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 40px;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.voting-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  color: white;
  backdrop-filter: blur(10px);
}

.voting-info p {
  font-weight: 600;
  margin-bottom: 12px;
}

.voting-info ul {
  list-style: none;
}

.voting-info li {
  padding: 4px 0;
  opacity: 0.9;
}

/* Results Styles */
.results-section {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

.trophy-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.results-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.results-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.vote-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
}

.results-grid {
  display: grid;
  gap: 25px;
  margin-bottom: 50px;
}

.result-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.result-card.winner {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  border: 2px solid #f59e0b;
}

.winner-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.result-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.candidate-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.result-content .candidate-avatar {
  width: 80px;
  height: 80px;
}

.vote-stats {
  text-align: right;
}

.percentage {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4f46e5;
}

.winner .percentage {
  color: #f59e0b;
}

.vote-count {
  color: #64748b;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width 0.5s ease;
}

.winner-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.statistics {
  background: white;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.statistics h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: #f8fafc;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fbbf24;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  color: #f8fafc;
  font-weight: 500;
}

.results-actions {
  text-align: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fbbf24;
}

.footer-section p {
  color: #cbd5e1;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #fbbf24;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Authentication Styles */
.auth-form {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.auth-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.auth-header p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

.auth-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

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

.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.label-icon {
  font-size: 1.2rem;
}

.auth-input {
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.auth-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-input:invalid {
  border-color: #ef4444;
}

.auth-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.input-error {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.input-error.show {
  display: block;
}

.input-help {
  color: #64748b;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-actions {
  text-align: center;
  margin-bottom: 30px;
}

.auth-info {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #4f46e5;
}

.auth-info h4 {
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-info li {
  padding: 6px 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-info strong {
  color: #4f46e5;
}

/* Voter Info Styles */
.voter-info {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.voter-welcome {
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome-icon {
  font-size: 2rem;
}

.welcome-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.welcome-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Vote Details */
.vote-details {
  background: #f0f9ff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #0ea5e9;
}

.vote-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0f2fe;
  color: #0c4a6e;
}

.vote-detail:last-child {
  border-bottom: none;
}

.vote-detail strong {
  font-weight: 600;
}

/* Loading States */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Error States */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-message .error-icon {
  font-size: 1.5rem;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-message .success-icon {
  font-size: 1.5rem;
}

/* Responsive adjustments for auth form */
@media (max-width: 768px) {
  .auth-form {
    padding: 25px;
    margin: 0 10px;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .auth-header p {
    font-size: 1rem;
  }

  .auth-input {
    padding: 14px 16px;
  }

  .voter-welcome {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .vote-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .auth-form {
    padding: 20px;
  }

  .auth-icon {
    font-size: 3rem;
  }

  .auth-header h2 {
    font-size: 1.3rem;
  }

  .input-label {
    font-size: 0.9rem;
  }

  .auth-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .auth-info {
    padding: 15px;
  }

  .auth-info li {
    font-size: 0.85rem;
  }
}

/* Authentication Styles */
.auth-form {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.auth-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.auth-header p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

.auth-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

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

.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.label-icon {
  font-size: 1.2rem;
}

.auth-input {
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.auth-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-input:invalid {
  border-color: #ef4444;
}

.auth-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.input-error {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.input-error.show {
  display: block;
}

.input-help {
  color: #64748b;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-actions {
  text-align: center;
  margin-bottom: 30px;
}

.auth-info {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #4f46e5;
}

.auth-info h4 {
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-info li {
  padding: 6px 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-info strong {
  color: #4f46e5;
}

/* Voter Info Styles */
.voter-info {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.voter-welcome {
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome-icon {
  font-size: 2rem;
}

.welcome-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.welcome-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Vote Details */
.vote-details {
  background: #f0f9ff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #0ea5e9;
}

.vote-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0f2fe;
  color: #0c4a6e;
}

.vote-detail:last-child {
  border-bottom: none;
}

.vote-detail strong {
  font-weight: 600;
}

/* Loading States */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Error States */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-message .error-icon {
  font-size: 1.5rem;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-message .success-icon {
  font-size: 1.5rem;
}

/* Responsive adjustments for auth form */
@media (max-width: 768px) {
  .auth-form {
    padding: 25px;
    margin: 0 10px;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .auth-header p {
    font-size: 1rem;
  }

  .auth-input {
    padding: 14px 16px;
  }

  .voter-welcome {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .vote-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .auth-form {
    padding: 20px;
  }

  .auth-icon {
    font-size: 3rem;
  }

  .auth-header h2 {
    font-size: 1.3rem;
  }

  .input-label {
    font-size: 0.9rem;
  }

  .auth-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .auth-info {
    padding: 15px;
  }

  .auth-info li {
    font-size: 0.85rem;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }

  .hero-container {
    gap: 40px;
  }

  .candidates-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 30px;
  }

  .candidates-grid,
  .candidates-voting-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    padding: 0 15px;
    height: 60px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .logo-text {
    display: none;
  }

  /* Hero Section */
  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 30px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Hero Graphic */
  .hero-graphic {
    height: 300px;
  }

  .voting-box {
    width: 150px;
    height: 200px;
  }

  /* Sections */
  .candidates,
  .info,
  .voting-section,
  .results-section {
    padding: 60px 0 40px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  /* Candidate Cards */
  .candidates-grid,
  .candidates-voting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .candidate-card {
    padding: 25px;
  }

  .candidate-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .candidate-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

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

  .candidate-name {
    font-size: 1.3rem;
  }

  /* Voting Styles */
  .voting-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .voting-icon {
    font-size: 2.5rem;
  }

  .voting-subtitle {
    font-size: 1.1rem;
  }

  .voting-form,
  .vote-confirmation {
    padding: 25px;
    margin: 0 10px;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .form-header p {
    font-size: 1rem;
  }

  .candidate-label {
    padding: 20px;
  }

  .candidate-content .candidate-avatar {
    width: 80px;
    height: 80px;
  }

  .candidate-content .candidate-name {
    font-size: 1.2rem;
  }

  .candidate-content .candidate-slogan {
    font-size: 1rem;
  }

  /* Results */
  .results-title {
    font-size: 2rem;
  }

  .results-subtitle {
    font-size: 1.1rem;
  }

  .trophy-icon {
    font-size: 3rem;
  }

  .result-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .candidate-info {
    flex-direction: column;
    gap: 15px;
  }

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

  .percentage {
    font-size: 2rem;
  }

  .statistics {
    padding: 30px 20px;
  }

  .statistics h2 {
    font-size: 1.5rem;
  }

  .results-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .results-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  /* Navigation */
  .nav-container {
    padding: 0 10px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-link {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    padding: 70px 0 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  /* Sections */
  .container {
    padding: 0 10px;
  }

  .candidates,
  .info,
  .voting-section,
  .results-section {
    padding: 50px 0 30px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Cards */
  .candidate-card,
  .info-card,
  .voting-form,
  .vote-confirmation,
  .result-card,
  .statistics {
    padding: 20px;
    margin: 0 5px;
  }

  .candidate-avatar {
    width: 80px;
    height: 80px;
  }

  .candidate-name {
    font-size: 1.2rem;
  }

  .candidate-party {
    font-size: 0.75rem;
    padding: 3px 10px;
  }

  .candidate-slogan {
    font-size: 0.95rem;
  }

  .candidate-proposals li {
    font-size: 0.85rem;
    padding: 3px 0;
  }

  /* Voting */
  .voting-title {
    font-size: 1.8rem;
  }

  .voting-icon {
    font-size: 2rem;
  }

  .form-header h2 {
    font-size: 1.3rem;
  }

  .form-header p {
    font-size: 0.95rem;
  }

  .candidate-content .candidate-avatar {
    width: 70px;
    height: 70px;
  }

  .candidate-content .candidate-name {
    font-size: 1.1rem;
  }

  .candidate-content .candidate-grade {
    font-size: 0.9rem;
  }

  .candidate-content .candidate-slogan {
    font-size: 0.9rem;
  }

  .candidate-content .candidate-proposals h4 {
    font-size: 0.9rem;
  }

  .candidate-content .candidate-proposals li {
    font-size: 0.8rem;
  }

  /* Results */
  .results-title {
    font-size: 1.8rem;
  }

  .trophy-icon {
    font-size: 2.5rem;
  }

  .percentage {
    font-size: 1.8rem;
  }

  .vote-count {
    font-size: 0.9rem;
  }

  .winner-badge {
    font-size: 0.8rem;
    padding: 4px 15px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Info Cards */
  .info-card {
    padding: 25px 20px;
  }

  .info-icon {
    font-size: 2.5rem;
  }

  .info-card h3 {
    font-size: 1.2rem;
  }

  .info-card li {
    font-size: 0.9rem;
    padding: 6px 0;
  }

  /* Footer */
  .footer {
    padding: 30px 0 15px;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .voting-title,
  .results-title {
    font-size: 1.6rem;
  }

  .candidate-card,
  .voting-form,
  .result-card {
    padding: 15px;
  }

  .btn-large {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .percentage {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 20px;
  }

  .voting-section,
  .results-section {
    padding: 70px 0 40px;
  }

  .voting-title,
  .results-title {
    font-size: 1.8rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .candidate-label {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .candidate-radio {
    width: 44px;
    height: 44px;
  }

  .social-link {
    padding: 10px;
    margin: 5px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .candidate-avatar img,
  .hero-graphic {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-actions,
  .voting-actions,
  .results-actions,
  .footer {
    display: none;
  }

  .hero,
  .voting-section,
  .results-section {
    background: white !important;
    color: black !important;
  }

  .candidate-card,
  .result-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
