body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-card {
  background: white;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 850px;
  display: flex;
  overflow: hidden;
  min-height: 500px;
}

.login-visual {
  flex: 1;
  background-color: #1e293b;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  color: white;
  text-align: center;
  padding-top: 0.5rem;
  overflow: hidden;
}

.visual-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.login-logo-top {
  max-height: 90px;
  width: auto;
  margin: 0 auto 15px auto;
  display: block;
}

.visual-img {
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 32, 91, 0.4);
  z-index: 2;
  pointer-events: none;
}

.login-form-wrapper {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-wrapper h1 {
  color: #111827;
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  text-align: center;
  font-weight: 700;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  text-align: center;
}

.input-group {
  margin-bottom: 1.2rem;
  text-align: left;
  position: relative;
}

.input-group label {
  display: block;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  padding-right: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s;
  background-color: white;
}

.input-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #374151;
}

.btn {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.8rem;
  width: 100%;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

/* Loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e5e7eb;
  border-top: 5px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .login-visual {
    display: none;
  }

  .login-card {
    max-width: 400px;
    min-height: auto;
  }

  .login-form-wrapper {
    padding: 2rem;
  }
}