/**
 * Login page redesign – modern blue window style
 * Inspired by flat illustration login concept
 */
.login-redesign-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #2563eb;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e293b;
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Decorative background elements */
.login-redesign-page::before {
  content: "";
  position: absolute;
  top: 8%;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}
.login-redesign-page::after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 120px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
}

.login-redesign-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  z-index: 0;
}
.login-redesign-cloud-1 { width: 60px; height: 30px; top: 20%; left: 15%; }
.login-redesign-cloud-2 { width: 90px; height: 35px; top: 35%; right: 20%; }
.login-redesign-cloud-3 { width: 50px; height: 22px; bottom: 25%; right: 12%; }

.login-redesign-plant {
  position: absolute;
  bottom: 0;
  z-index: 0;
  opacity: 0.35;
}
.login-redesign-plant svg {
  width: 100%;
  height: auto;
  fill: rgba(255, 255, 255, 0.6);
}
.login-redesign-plant-left { left: 0; width: 140px; }
.login-redesign-plant-right { right: 0; width: 120px; transform: scaleX(-1); }

/* Window card */
.login-redesign-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  background: #1e40af;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.login-redesign-titlebar {
  background: #1e3a8a;
  height: 36px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  gap: 6px;
}
.login-redesign-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.login-redesign-titlebar span:nth-child(1) { background: rgba(255, 255, 255, 0.4); }
.login-redesign-titlebar span:nth-child(2) { background: rgba(255, 255, 255, 0.3); }
.login-redesign-titlebar span:nth-child(3) { background: rgba(255, 255, 255, 0.2); }

.login-redesign-body {
  padding: 2rem 2rem 2.25rem;
  background: #2563eb;
}
.login-redesign-body .company-logo img {
  max-height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.login-redesign-user-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: #1e3a8a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-redesign-user-circle svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.login-redesign-page .form-group {
  margin-bottom: 1.25rem;
}
.login-redesign-page .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}
.login-redesign-page .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  box-sizing: border-box;
}
.login-redesign-page .form-control:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}
.login-redesign-page .form-control::placeholder {
  color: #94a3b8;
}

.login-redesign-forgot {
  display: block;
  text-align: right;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.login-redesign-forgot:hover {
  color: #fff;
  text-decoration: underline;
}

.login-redesign-page .checkbox {
  margin-bottom: 1.25rem;
}
.login-redesign-page .checkbox label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.login-redesign-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1e40af;
  background: #93c5fd;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.login-redesign-btn:hover {
  background: #bfdbfe;
}
.login-redesign-btn:active {
  transform: scale(0.99);
}

.login-redesign-alerts {
  margin-bottom: 1rem;
}
.login-redesign-alerts .alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

/* Simple decorative figures (CSS-only silhouettes) */
.login-redesign-figures {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8%;
  padding: 0 5%;
  max-width: 500px;
  margin: 0 auto;
}
.login-redesign-fig {
  width: 44px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 22px 22px 0 0;
  position: relative;
}
.login-redesign-fig::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}
.login-redesign-fig:nth-child(2) { height: 70px; }
.login-redesign-fig:nth-child(3) { height: 90px; }
.login-redesign-fig:nth-child(4) { height: 75px; }

@media (max-width: 480px) {
  .login-redesign-body { padding: 1.5rem 1.25rem 1.75rem; }
  .login-redesign-figures { display: none; }
}

/* Client login (authentication/login) – full viewport inside theme layout */
body.customers_login {
  background: #2563eb !important;
  min-height: 100vh;
}
body.customers_login #wrapper,
body.customers_login #content,
body.customers_login .container,
body.customers_login .container .row {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.customers_login #wrapper {
  min-height: 100vh;
}
body.customers_login .container .row {
  display: block;
}
body.customers_login .login-redesign-page-clients {
  min-height: 100vh;
}
.login-redesign-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin: 0 0 1.25rem 0;
}
.login-redesign-register-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.login-redesign-register-link:hover {
  color: #fff;
  text-decoration: underline;
}
.login-redesign-page .form-error {
  font-size: 0.8125rem;
  color: #fecaca;
  margin-top: 0.25rem;
}
