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

body {
  background-color: #f8f9fa;
  background-image: linear-gradient(45deg, #e9ecef 25%, transparent 25%),
    linear-gradient(-45deg, #e9ecef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9ecef 75%),
    linear-gradient(-45deg, transparent 75%, #e9ecef 75%);
  background-size: 20px 20px;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: linear-gradient(90deg, #5e72e4 0%, #825ee4 100%);
  color: white;
  padding: 1.2rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  width: 40px;
  height: 40px;
}

/* Navigation */
nav {
  display: flex;
  gap: 1rem;
}

.button {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.primary-button {
  background-color: #fff;
  color: #5e72e4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.secondary-button {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Shapes */
.shapes-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

.shape {
  position: absolute;
  opacity: 0.2;
}

.shape1 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #5e72e4;
  top: 20%;
  left: 10%;
  animation: float 7s ease-in-out infinite;
}

.shape2 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #825ee4;
  top: 60%;
  right: 10%;
  animation: float 9s ease-in-out infinite 1s;
}

.shape3 {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #5e72e4;
  bottom: 10%;
  left: 20%;
  animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Login Container */
.login-container {
  max-width: 450px;
  margin: 5rem auto;
  padding: 2.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(94, 114, 228, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #5e72e4, #825ee4);
}

.login-container h2 {
  margin-bottom: 2rem;
  color: #2d3748;
  font-size: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #5e72e4;
  box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.1);
}

.form-group .icon {
  position: absolute;
  right: 12px;
  top: 40px;
  color: #a0aec0;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  margin-right: 10px;
}

.checkbox-group label {
  color: #718096;
  font-size: 0.9rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(90deg, #5e72e4, #825ee4);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(94, 114, 228, 0.2);
}

.sign-up-link {
  margin-top: 1.5rem;
  color: #718096;
  font-size: 0.95rem;
}

.sign-up-link a {
  color: #5e72e4;
  text-decoration: none;
  font-weight: 600;
}

.sign-up-link a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #d1d5db;
  padding: 3rem 5%;
  text-align: center;
  margin-top: auto;
  border-top: 4px solid #5e72e4;
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 5%;
  }
  nav {
    width: 100%;
    justify-content: center;
  }
  .login-container {
    padding: 1.5rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
