:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --accent-color: #4fc3f7;
  --error-color: #f44336;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --text-color: #333;
  --light-text: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #4a6fa5 0%, #166088 100%);
  --card-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.slideshow-container {
  position: relative;
  height: 500px;
  width: 500px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 15px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide.active {
  opacity: 1;
}

.slide-content {
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding-top:47%;
  padding-left: 5px;
  padding-bottom: 5px;
  border-radius: 8px;
  width: 100%;
}

.slide-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.slide-desc {
  font-size: 0.85rem;
  opacity: 0.9;
}

.slideshow-container {
  height: 300px;
}

/body {
  background-color: none;
  background-image: url('https://drive.google.com/thumbnail?id=1dcW_rK1-vJWsFcX2BbO4eHEyDYPFNeJO&sz=w1000');
  background-size: 100%;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 90%;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  transform: scale(0.95);
  opacity: 0;
  animation: fadeInUp 0.8s forwards 0.3s;
  transition: var(--transition);
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo img {
  height: 60px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.logo p {
  color: var(--secondary-color);
  font-size: 0.9rem;
  opacity: 0.8;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.input-container {
  position: relative;
}

.input-container input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #f8f9fa;
}

.input-container input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
  background-color: white;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--bg-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 0.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(0);
}

.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.floating-particles {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0.5;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  animation: particlePulse 4s infinite alternate;
}

@keyframes particlePulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* Verification Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  transform: scale(0.9);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.user-info {
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  margin-bottom: 0.8rem;
}

.info-item label {
  font-weight: 600;
  width: 120px;
  color: var(--text-color);
}

.info-item span {
  flex: 1;
  color: var(--secondary-color);
}

.pin-input {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.pin-input input {
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: var(--transition);
}

.pin-input input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.modal-btn.cancel {
  background: #f1f1f1;
  color: var(--text-color);
}

.modal-btn.submit {
  background: var(--bg-gradient);
  color: white;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Festival Theme Elements */
.festival-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    margin: 0 15px;
    padding: 1.5rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
}