/* Animated Gradient Background */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(-30px, 30px) rotate(180deg);
  }
  75% {
    transform: translate(40px, 20px) rotate(270deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-page {
  min-height: 100vh;
  background: linear-gradient(-45deg, #F7F9FB, #E7ECF9, #F0F4FF, #E7ECF9);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Animated Background Elements */
.landing-page::before,
.landing-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.landing-page::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(86, 121, 245, 0.15) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.landing-page::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10, 30, 89, 0.1) 0%, transparent 70%);
  bottom: -250px;
  left: -150px;
  animation: float 25s ease-in-out infinite reverse;
}

/* Floating Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(86, 121, 245, 0.2), rgba(86, 121, 245, 0.05));
  top: 20%;
  right: 10%;
  animation: drift 30s ease-in-out infinite;
}

.bg-shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(10, 30, 89, 0.15), rgba(10, 30, 89, 0.05));
  bottom: 15%;
  left: 8%;
  animation: drift 25s ease-in-out infinite reverse;
}

.bg-shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(86, 121, 245, 0.2), transparent);
  top: 60%;
  left: 15%;
  animation: drift 35s ease-in-out infinite;
}

/* Ensure content is above background */
.landing-nav,
.landing-hero {
  position: relative;
  z-index: 1;
}

.landing-nav {
  padding: 1.5rem 2rem;
  background: transparent;
}

.landing-nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.landing-nav-login {
  color: #0A1E59;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.landing-nav-login:hover {
  color: #5679F5;
}

.landing-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.landing-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.landing-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.landing-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #0A1E59;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.landing-subtitle {
  font-size: 1.35rem;
  color: #4a5568;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.landing-mockup {
  margin: 4rem 0;
  display: flex;
  justify-content: center;
}

.landing-mockup img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10, 30, 89, 0.15);
  transition: transform 0.3s ease;
}

.landing-mockup img:hover {
  transform: translateY(-8px);
}

.landing-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.landing-cta {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 200px;
  justify-content: center;
}

.landing-cta-primary {
  background: #0A1E59;
  color: white;
  box-shadow: 0 4px 14px rgba(10, 30, 89, 0.25);
}

.landing-cta-primary:hover {
  background: #0d2668;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 30, 89, 0.35);
  color: white;
}

.landing-cta-secondary {
  background: #5679F5;
  color: white;
  box-shadow: 0 4px 14px rgba(86, 121, 245, 0.25);
}

.landing-cta-secondary:hover {
  background: #435ebe;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(86, 121, 245, 0.35);
  color: white;
}

/* Login Page Styles */
.login-content {
  max-width: 450px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.login-social-section {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.login-social-section form {
  width: 100%;
  margin: 0;
}

.login-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: white;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.login-google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e0;
  color: #2d3748;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: #718096;
  font-size: 0.875rem;
  font-weight: 600;
}

.login-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0;
}

.login-form {
  text-align: left;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #0A1E59;
  font-weight: 600;
  font-size: 0.9rem;
}

.login-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #2d3748;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: #5679F5;
  box-shadow: 0 0 0 3px rgba(86, 121, 245, 0.1);
}

.login-input::placeholder {
  color: #a0aec0;
}

.form-error {
  margin-top: 0.5rem;
  color: #e53e3e;
  font-size: 0.875rem;
}

.form-group-forgot {
  text-align: right;
  margin-bottom: 1.5rem;
}

.forgot-password-link {
  color: #5679F5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: #435ebe;
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.alert-danger {
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  background-color: #fed7d7;
  color: #c53030;
  border: 1px solid #fc8181;
  border-radius: 8px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .landing-title {
    font-size: 2.25rem;
  }
  
  .landing-subtitle {
    font-size: 1.1rem;
  }
  
  .landing-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  
  .landing-cta {
    width: 100%;
  }
  
  .landing-hero {
    padding: 2rem 1rem;
  }
  
  .landing-nav {
    padding: 1rem;
  }
  
  .login-content {
    max-width: 100%;
  }
}

