html {
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #044bab 0%, #022a61 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(243, 209, 54, 0.3) 0%,
    transparent 70%
  );
  top: -5%;
  left: -5%;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(0, 86, 179, 0.4) 0%,
    transparent 70%
  );
  bottom: -5%;
  right: -5%;
  animation-delay: 2s;
}

.login-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px auto;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #044bab, #f3d136);
  background-size: 200% auto;
  animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
  to {
    background-position: 200% center;
  }
}

.login-header {
  background: linear-gradient(135deg, #044bab 0%, #022a61 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.login-header img {
  width: 65px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.login-header h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.login-header p {
  opacity: 0.9;
  font-size: 0.9rem;
  font-weight: 300;
}

.login-body {
  padding: 30px 25px;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid transparent;
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
}

.tab-btn.active {
  background: linear-gradient(135deg, #044bab, #022a61);
  color: white;
  box-shadow: 0 5px 20px rgba(4, 75, 171, 0.3);
}

.tab-btn:hover:not(.active) {
  background: rgba(4, 75, 171, 0.1);
  border-color: #044bab;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: "Poppins", sans-serif;
  background: white;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #044bab;
  box-shadow: 0 0 0 4px rgba(4, 75, 171, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #044bab 0%, #022a61 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Poppins", sans-serif;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(4, 75, 171, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  color: #044bab;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.back-link a:hover {
  color: #022a61;
  gap: 12px;
}

.error-message,
.success-message {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 18px;
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.error-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #f87171;
}

.success-message {
  background: linear-gradient(135deg, #dcfce7 0%, #a7f3d0 100%);
  color: #166534;
  border: 1px solid #4ade80;
}

#registerForm {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(20px, -20px);
  }

  66% {
    transform: translate(-15px, 15px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .login-container {
    max-width: 100%;
    border-radius: 20px;
    margin: 10px;
  }

  .login-header {
    padding: 25px 15px;
  }

  .login-header img {
    width: 55px;
  }

  .login-header h1 {
    font-size: 1.4rem;
  }

  .login-header p {
    font-size: 0.85rem;
  }

  .login-body {
    padding: 25px 20px;
  }

  .tab-btn {
    font-size: 0.9rem;
    padding: 10px;
  }

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

  .form-group input {
    padding: 12px 14px;
  }

  .btn-submit {
    padding: 13px;
  }

  .blob-1,
  .blob-2 {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .tab-buttons {
    gap: 8px;
  }

  .login-header h1 {
    font-size: 1.3rem;
  }
}
