/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  overflow: hidden;
  height: 100vh;
  color: #fff;
}

.main-container {
  display: flex;
  height: 100vh;
}

/* Slideshow Styles */
.events-slideshow {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.slide.active {
  opacity: 1;
}

.event-info {
  max-width: 600px;
  text-align: center;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  animation: fadeIn 1s ease-in-out;
}

.event-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.event-date {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.5s ease;
  perspective: 1000px;
}

.event-date:hover {
  transform: translateY(-5px);
}

.event-date .day {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
}

.event-date .month {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.event-date .year {
  font-size: 1rem;
  opacity: 0.8;
}

.event-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.slideshow-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.prev-slide, .next-slide {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-slide:hover, .next-slide:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.slide-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fff;
  transform: scale(1.2);
}

/* Login Form Styles */
.login-container {
  width: 450px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 10;
  overflow-y: auto;
}

.login-form {
  width: 100%;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo img {
  max-width: 120px;
  height: auto;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #2c3e50;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #7f8c8d;
}

.form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.remember-me input {
  opacity: 0;
  position: absolute;
}

.checkmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
}

.remember-me input:checked ~ .checkmark {
  background-color: #3498db;
  border-color: #3498db;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after {
  display: block;
}

.forgot-password {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #2980b9;
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.btn-login:hover {
  background: linear-gradient(135deg, #2980b9, #1a252f);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  display: none;
}

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

.social-login p {
  margin-bottom: 1rem;
  color: #7f8c8d;
  font-size: 0.9rem;
  position: relative;
}

.social-login p:before,
.social-login p:after {
  content: "";
  position: absolute;
  height: 1px;
  width: 30%;
  background: #ddd;
  top: 50%;
}

.social-login p:before {
  left: 0;
}

.social-login p:after {
  right: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon.google {
  background: #db4437;
}

.social-icon.facebook {
  background: #3b5998;
}

.social-icon.twitter {
  background: #1da1f2;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.register-link {
  text-align: center;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.register-link a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.register-link a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.error {
  color: #e74c3c;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 3D Animation for Date */
.event-date.flip {
  animation: flip 0.6s ease forwards;
}

@keyframes flip {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  
  .events-slideshow {
    display: none;
  }
  
  .login-container {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 12px;
  }

  /* Allow scroll on small screens */
  body {
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }
}

/* Mobile small: improve readability and touch targets */
@media (max-width: 480px) {
  html, body {
    font-size: 16px; /* Avoid iOS zoom and improve readability */
  }

  .logo img {
    max-width: 140px;
  }

  h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }

  .form-group { margin-bottom: 1.25rem; }

  .input-icon {
    left: 14px;
    font-size: 1rem;
  }

  input[type="text"],
  input[type="password"] {
    font-size: 1rem; /* 16px base */
    padding: 14px 16px 14px 46px; /* bigger touch target */
    border-radius: 10px;
  }

  .toggle-password {
    right: 14px;
    font-size: 1.05rem;
  }

  .form-extra {
    font-size: 1rem;
    gap: 8px;
    flex-wrap: wrap;
  }

  .checkmark {
    width: 20px; height: 20px;
  }
  .checkmark:after { left: 6px; top: 3px; }

  .btn-login {
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .social-login p { font-size: 1rem; }
  .social-icon { width: 44px; height: 44px; font-size: 1.25rem; }

  .register-link { font-size: 1rem; }
}

/* Very small devices */
@media (max-width: 360px) {
  .login-container {
    max-width: 360px;
    padding: 1.25rem;
  }

  h2 { font-size: 1.5rem; }

  input[type="text"],
  input[type="password"] {
    padding: 12px 14px 12px 44px;
  }

  .btn-login {
    padding: 12px;
    font-size: 1.05rem;
  }
}