:root {
  --brand: #5d5fef;
  --brand-dark: #4a4cd9;
  --bg-dark: #0b1020;
  --surface: rgba(255, 255, 255, 0.12);
  --text-main: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text-main);
}

.login-split-body {
  min-height: 100vh;
  background: #0b1022;
}

.login-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.login-left-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  overflow: hidden;
  background-image: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center;
}

.left-panel-overlay {
  display: none;
}

.left-panel-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 0.3rem;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.35),
    0 14px 30px rgba(2, 6, 23, 0.78);
}

.left-panel-content::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 30% 35%, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.16) 55%, rgba(0, 0, 0, 0) 100%);
  filter: blur(8px);
}

.left-company-desc {
  max-width: 520px;
  line-height: 1.6;
}

.left-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.left-tag {
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: none;
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 20px rgba(2, 6, 23, 0.32);
}

.login-right-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: #000;
}

.login-right-panel::before {
  content: none;
}

@keyframes rightGradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.login-clean-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  border-radius: 1.2rem;
  backdrop-filter: none;
  background: rgba(229, 231, 235, 0.15);
  border: none;
  box-shadow: none;
  padding: 2rem 2rem 1.8rem;
}

.login-right-panel .login-clean-card h3 {
  color: #ffffff !important;
}

.login-right-panel .login-clean-card p,
.login-right-panel .login-clean-card .form-label,
.login-right-panel .login-clean-card .form-check-label,
.login-right-panel .login-clean-card a {
  color: #9ca3af !important;
}

.login-tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #4c1d95;
  background: rgba(131, 58, 180, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-icon {
  font-size: 2.15rem;
  color: #e0e7ff;
}

.icon-sm {
  font-size: 1.28rem;
  color: #6b7280;
}

.custom-input {
  border: 1px solid #d1d5db;
  border-radius: 0.95rem;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.large-input {
  min-height: 3.3rem;
}

.large-input .input-group-text {
  padding-left: 1rem;
}

.large-input .form-control {
  font-size: 1.05rem;
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
  color: #111827;
  background: transparent;
}

.login-right-panel .large-input .form-control {
  color: #374151;
  font-weight: 700;
}

.custom-input .form-control::placeholder {
  color: #6b7280;
}

.login-right-panel .custom-input .form-control::placeholder {
  color: #d1d5db;
  font-weight: 400;
}

.custom-input:focus-within {
  border-color: rgba(131, 58, 180, 0.48);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.24);
  background: #fff;
}

.custom-input .form-control:focus {
  box-shadow: none;
}

/* Keep validation border aligned with custom input container */
#loginForm.was-validated .custom-input .form-control:invalid,
#loginForm.was-validated .custom-input .form-control.is-invalid {
  border: 0;
  box-shadow: none;
  background-image: none;
}

#loginForm.was-validated .custom-input:has(.form-control:invalid),
#loginForm.was-validated .custom-input:has(.form-control.is-invalid) {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

.custom-input .form-control:valid {
  background-image: none;
}

.password-toggle-btn {
  cursor: pointer;
}

.password-toggle-btn .icon-sm {
  transition: color 0.2s ease;
}

.password-toggle-btn:hover .icon-sm {
  color: #374151;
}

.btn-brand {
  border-radius: 0.95rem;
  border: none;
  color: #fff;
  background: #833ab4;
  background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
  background-size: 200% 200%;
  animation: rightGradientMove 8s ease infinite;
  box-shadow: none;
  transition: transform 0.6s ease;
}

.btn-lg-login {
  min-height: 3.35rem;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .login-split-layout {
    grid-template-columns: 1fr;
  }

  .login-left-panel {
    min-height: 38vh;
    padding: 1.2rem;
  }

  .left-panel-content {
    padding: 0.35rem;
  }

  .login-right-panel {
    padding: 1.25rem;
  }

  .login-clean-card {
    padding: 1.4rem;
  }
}
