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

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.login-background {
  height: 100dvh;
  object-fit: cover;
  opacity: 0.8;
}

.login-container {
  display: flex;
  width: 100%;
  height: 100dvh;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

#logo-background {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-size: 95%;
  background-position: center;
  background-repeat: repeat-y;
  width: 50%;
  height: 200%;
  z-index: 0;
  box-shadow: 0px -30px 180px 40px rgba(255, 255, 255, 1) inset,
    0px -30px 180px 30px rgba(255, 255, 255, 0.9) inset,
    0px -30px 40px 30px rgba(255, 255, 255, 0.9) inset;
  -webkit-box-shadow: 0px -30px 180px 40px rgba(255, 255, 255, 1) inset,
    0px -30px 180px 30px rgba(255, 255, 255, 0.9) inset,
    0px -30px 40px 30px rgba(255, 255, 255, 0.9) inset;
  -moz-box-shadow: 0px -30px 180px 40px rgba(255, 255, 255, 1) inset,
    0px -30px 180px 30px rgba(255, 255, 255, 0.9) inset,
    0px -30px 40px 30px rgba(255, 255, 255, 0.9) inset;
}

.login-form-wrapper {
  background: transparent;
  padding: 3rem;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  z-index: 1;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6941c6 100%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.logo-title {
  font-size: 1.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  background-clip: text;
  margin: 0;
}

.heading-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

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

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

.form-label {
  display: block;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: #8b5cf6;
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background-color: #8b5cf6;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid;
  border-image-source: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 0 0 1px rgba(10, 13, 18, 0.18),
    0 -2px 0px 0px rgba(10, 13, 18, 0.05);
}

.btn-primary:hover {
  background-color: #6941c6;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message,
.success-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.error-message {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.success-message {
  background: #c6f6d5;
  color: #2f855a;
  border: 1px solid #9ae6b4;
}

.forgot-password {
  text-align: center;
  margin-top: 1.5rem;
}

.forgot-password a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #718096;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .login-background {
    width: 100%;
    height: 40vh;
  }

  .login-container {
    width: 100%;
    padding: 1rem;
    height: 60dvh;
    position: relative;
  }

  .login-form-wrapper {
    padding: 2rem;
  }
}

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

  .logo-title {
    font-size: 1.5rem;
  }

  .heading-text {
    font-size: 1.25rem;
  }
}
