@import './theme.css';

/* LandingPage.css - Bright Blue & Colorful Child-Friendly Edition */

/* ============================= LOGIN PAGE ============================= */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 25%, #e0e7ff 50%, #ddd6fe 75%, #e0e7ff 100%);
  padding: 2rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Animated background elements for login */
.login-wrapper::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 18s ease-in-out infinite;
  pointer-events: none;
}

.login-wrapper::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 22s ease-in-out infinite reverse;
  pointer-events: none;
}

.login-wrapper .card {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 70px rgba(37, 99, 235, 0.2),
    0 10px 20px rgba(59, 130, 246, 0.1);
  border: 3px solid rgba(59, 130, 246, 0.2);
  position: relative;
  z-index: 1;
  animation: slideIn 0.6s ease-out;
}

.login-wrapper .card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  border-radius: 28px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(15px);
}

.login-wrapper .auth-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-wrapper .auth-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.login-wrapper .auth-logo-link:hover {
  transform: scale(1.05);
}

.login-wrapper .auth-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.login-wrapper .form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  text-align: center;
}

.login-wrapper .form-header svg {
  color: #3b82f6;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.05));
  align-self: flex-start;
  margin-bottom: 1rem;
}

.login-wrapper .form-header svg:hover {
  transform: translateX(-6px) scale(1.05);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.login-wrapper .form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.login-wrapper .welcome-message {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 500;
}

.login-wrapper label {
  display: block;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
  color: #1e293b;
  font-size: 1rem;
}

.login-wrapper input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 2px solid #bfdbfe;
  outline: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.05);
}

.login-wrapper input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15),
    0 4px 12px rgba(59, 130, 246, 0.2);
  background: #ffffff;
  transform: translateY(-2px) scale(1.01);
}

.login-wrapper input:hover:not(:focus) {
  border-color: #60a5fa;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.1);
}

.login-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.login-wrapper .btn-primary {
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 200%;
  color: #fff;
  padding: 1.125rem 1.5rem;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35),
    0 4px 12px rgba(59, 130, 246, 0.2);
  animation: gradientShift 4s ease infinite;
}

.login-wrapper .btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.45),
    0 6px 15px rgba(59, 130, 246, 0.3);
}

.login-wrapper .btn-primary:active {
  transform: translateY(-2px) scale(1.01);
}

.login-wrapper .error-message {
  color: #dc2626;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(239, 68, 68, 0.25);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
  animation: shake 0.5s ease-in-out;
}

.login-wrapper .info-message {
  color: #059669;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(5, 150, 105, 0.08));
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(5, 150, 105, 0.25);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.login-wrapper form p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  line-height: 1.6;
  margin-top: 1rem;
  font-weight: 500;
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 1.5rem;
  }

  .login-wrapper .card {
    padding: 2.5rem 2rem;
  }

  .login-wrapper .form-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 1rem;
  }

  .login-wrapper .card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .login-wrapper .form-header {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

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

  .login-wrapper input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .login-wrapper .btn-primary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
  }
}