/* ANIMATED LOGIN STYLES - VERSION 2025 */
/* This CSS contains all the floating animations */

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-y: auto; /* Allow vertical scrolling */
}

/* ===== ANIMATED FLOATING SHAPES ===== */

/* Floating Circles */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: float 6s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.floating-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.floating-shape:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 20%;
  animation-delay: 4s;
}

.floating-shape:nth-child(4) {
  width: 70px;
  height: 70px;
  bottom: 25%;
  right: 10%;
  animation-delay: 1s;
}

.floating-shape:nth-child(5) {
  width: 90px;
  height: 90px;
  top: 60%;
  left: 70%;
  animation-delay: 3s;
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
  }
  50% {
    transform: translateY(-10px) translateX(-10px) scale(0.9);
  }
  75% {
    transform: translateY(-30px) translateX(5px) scale(1.05);
  }
}

/* ===== GEOMETRIC SHAPES ===== */

.geometric-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  animation: geometricFloat 10s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.geometric-shape.triangle {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43px solid rgba(255, 255, 255, 0.3);
}

.geometric-shape.square {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.geometric-shape.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.geometric-shape:nth-child(6) {
  top: 15%;
  right: 25%;
  animation-delay: 0s;
}

.geometric-shape:nth-child(7) {
  bottom: 20%;
  left: 15%;
  animation-delay: 3s;
}

.geometric-shape:nth-child(8) {
  top: 70%;
  right: 30%;
  animation-delay: 6s;
}

/* Geometric Animation */
@keyframes geometricFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-15px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translateY(-5px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translateY(-25px) rotate(270deg) scale(1.05);
  }
}

/* ===== PRESENTATION OVERLAY STYLES ===== */

.presentation-overlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.presentation-inner {
  width: 90%;
  max-width: 640px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.presentation-slide {
  opacity: 0;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  transform: translateY(6px);
  min-height: 80px;
}

.presentation-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.presentation-slide h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #333;
}

.presentation-slide p {
  color: #555;
  font-size: 1rem;
  margin: 0 auto;
  max-width: 520px;
}

.presentation-controls {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.presentation-close {
  background: none;
  border: 2px solid rgba(100, 100, 100, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

.presentation-progress {
  width: 240px;
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.presentation-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.15s linear;
}

.presentation-hint {
  font-size: 12px;
  color: #666;
  opacity: 0.9;
}

/* ===== LOGIN FORM STYLES ===== */

.login-wrapper {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.login-container {
  padding: 40px 30px;
}

.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
}

h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.login-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.login-links {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.login-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  margin: 0 10px;
}

.login-links a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ===== DEBUG INFO ===== */

.debug-info {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  color: #333;
  z-index: 100;
  border: 2px solid #667eea;
}

.debug-info strong {
  color: #667eea;
}
