/*
 * Login page — professional redesign.
 * Loaded after app/index.css (see src/index.html) so these rules win the
 * cascade without touching index.css or any other shared/base stylesheet.
 * Scoped entirely to .login-page / .login-* classes already present in
 * login.html — no markup changes required.
 */

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1220 0%, #123258 48%, #0b1220 100%);
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.login-page::before {
  width: 560px;
  height: 560px;
  background: #2563eb;
  top: -180px;
  left: -140px;
}

.login-page::after {
  width: 460px;
  height: 460px;
  background: #0ea5e9;
  bottom: -160px;
  right: -120px;
}

.login-page .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.login-page .widget-login-container {
  width: 100%;
  padding-top: 0;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.login-page .login-split {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 64px;
}

.login-page .login-left {
  flex: 0 0 440px;
  max-width: 440px;
  animation: loginFadeUp 0.5s ease both;
}

.login-page .login-left a[href="#/landing"] {
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.login-page .login-left a[href="#/landing"]:hover {
  opacity: 1;
}

.login-page .login-left .widget-login {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(2, 6, 23, 0.45), 0 10px 20px -8px rgba(2, 6, 23, 0.2);
  padding: 44px 40px 36px;
  border: none;
  overflow: hidden;
}

.login-page .login-left .widget-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.login-page .login-left .widget-login header {
  text-align: left;
  margin-bottom: 22px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 20px;
}

.login-page .login-left .widget-login header h3 {
  display: flex;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.01em;
}

.login-page .login-left .widget-login header h3 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-right: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.5);
}

.login-page .login-left .widget-login .widget-body {
  padding: 0;
}

.login-page .login-left .widget-login .widget-body p {
  text-align: left;
  color: #64748b;
  margin-bottom: 20px;
  font-size: 13.5px;
}

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

.login-page .login-form .input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.login-page .login-form .input-group-addon {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.login-page .login-form .input-group-addon .glyphicon,
.login-page .login-form .input-group-addon i {
  font-size: 14px;
  line-height: 1;
}

.login-page .login-form .input-group .form-control {
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 0 10px 10px 0;
  padding: 11px 14px;
  font-size: 13.5px;
  color: #1e293b !important;
  height: auto;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-page .login-form .input-group .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
  background: #ffffff !important;
}

.login-page .login-form .input-group:focus-within .input-group-addon {
  border-color: #2563eb;
  color: #2563eb;
}

.login-page .login-form .error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.login-page .login-form .alert {
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  border: none;
}

.login-page .login-form .btn-sidebar {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  width: 100%;
  margin-bottom: 12px;
  box-shadow: 0 8px 16px -6px rgba(37, 99, 235, 0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.login-page .login-form .btn-sidebar:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.6);
}

.login-page .login-form .btn-sidebar:active {
  transform: translateY(0);
}

.login-page .login-form .btn-success {
  background: #059669;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  width: 100%;
  margin-bottom: 10px;
  transition: background 0.15s ease, transform 0.12s ease;
}

.login-page .login-form .btn-success:hover {
  background: #047857;
  color: #fff;
  transform: translateY(-1px);
}

.login-page .login-form .btn-primary {
  background: #2563eb;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  width: 100%;
  margin-bottom: 10px;
  transition: background 0.15s ease, transform 0.12s ease;
}

.login-page .login-form .btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
}

.login-page .login-form .btn-outline {
  background: transparent;
  border: 1px solid #2563eb;
  color: #2563eb;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0;
  margin-right: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.login-page .login-form .btn-outline:hover {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
}

.login-page .login-form .text-primary a {
  color: #2563eb;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.login-page .login-form .text-primary a:hover {
  text-decoration: underline;
}

.login-page .login-form > div[style*="margin: 20px"] {
  text-align: center;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.6;
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.login-page .login-form > div[style*="margin: 20px"] a {
  color: #2563eb;
  font-weight: 500;
}

.login-page .login-form > div[style*="margin: 20px"] a:hover {
  text-decoration: underline;
}

.login-page .login-right {
  flex: 1;
  color: #ffffff;
  padding: 40px 20px;
  animation: loginFadeUp 0.6s ease 0.1s both;
}

.login-page .login-right .brand {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.login-page .login-right .brand sup {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
}

.login-page .login-right .tagline {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 460px;
}

.login-page .login-right .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 460px;
}

.login-page .login-right .feature-list li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
}

.login-page .login-right .feature-list li::before {
  content: "\f058";
  font-family: FontAwesome;
  font-size: 16px;
  color: #38bdf8;
  margin-right: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.login-page .page-footer,
.login-page > footer {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 20px;
}

@keyframes loginFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .login-page .login-split {
    flex-direction: column;
    gap: 32px;
  }

  .login-page .login-left {
    flex: 0 0 auto;
    max-width: 460px;
    width: 100%;
  }

  .login-page .login-right {
    display: none;
  }

  .login-page .widget-login-container {
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .login-page .container {
    padding: 24px 16px;
  }

  .login-page .login-left .widget-login {
    padding: 32px 24px 28px;
    border-radius: 16px;
  }
}
