/* ==========================================================================
   UI :: Login page  (template/login.php) — Split-screen, no particles.
   Left = Mobily brand panel · Right = white form. Presentational only.
   Loaded after login.css to override it.
   ========================================================================== */

/* Kill any page scrollbar — login is always exactly one viewport */
html, body { height: 100%; }
body { margin: 0; overflow: hidden; }
.main-wrapper { height: 100vh; overflow: hidden; }

/* Old particles backdrop (if markup lingers anywhere) */
#particles-js { display: none !important; }

/* ==========================================================================
   Layout
   ========================================================================== */
.login-split {
  display: flex;
  height: 100vh;
  width: 100%;
  background: #fff;
}

/* ---- Left brand panel --------------------------------------------------- */
.login-brand {
  position: relative;
  flex: 0 0 45%;
  max-width: 45%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #04143f 0%, #0a4d9e 55%, #00b8e6 130%);
}
/* soft animated mesh + floating shapes for life */
.login-brand-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .14) 0, transparent 26%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .12) 0, transparent 30%),
    radial-gradient(circle at 70% 18%, rgba(79, 210, 255, .28) 0, transparent 26%);
  animation: loginMesh 14s ease-in-out infinite alternate;
}
.login-brand-pattern::before,
.login-brand-pattern::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .08);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .10), transparent 60%);
}
.login-brand-pattern::after {
  right: -130px;
  bottom: -130px;
  width: 380px;
  height: 380px;
  border-width: 60px;
  border-color: rgba(255, 255, 255, .05);
  animation: loginFloat 9s ease-in-out infinite;
}
.login-brand-pattern::before {
  left: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  animation: loginFloat 11s ease-in-out infinite reverse;
}
@keyframes loginMesh {
  0%   { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 30px 20px, -20px -10px, 10px 30px; }
}
@keyframes loginFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-22px) translateX(12px); }
}
.login-brand-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 420px;
}
.login-brand-logo {
  background: #fff;
  padding: 14px 22px;
  border-radius: 16px;
  max-width: 240px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}
.login-brand-title {
  margin: 1.7rem 0 .5rem;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.login-brand-sub {
  margin: 0 auto;
  max-width: 340px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

/* ---- Right form panel --------------------------------------------------- */
.login-form-side {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;            /* scrolls only the form on very short screens */
  background: #eef3f9;         /* soft backdrop so the card reads as a card */
}
.login-form-side .login-box {
  background: #ffffff !important;
  box-shadow: 0 28px 60px -30px rgba(4, 20, 63, .4) !important;
  border: 1px solid rgba(4, 20, 63, .05) !important;
  width: 100%;
  max-width: 430px;
  border-radius: 20px !important;
  padding: 2.6rem 2.4rem !important;
}
.login-form-side .login-head { margin-bottom: 1.4rem; }
.login-form-side .login-title {
  color: #0a2a52 !important;
  font-weight: 800;
  font-size: 1.5rem;
}
.login-form-side .login-sub {
  margin: .15rem 0 0;
  color: #8a97a8;
  font-size: .9rem;
}
.login-form-side .login-foot {
  margin: 1.6rem 0 0;
  text-align: center;
  font-size: .8rem;
  color: #9aa6b5;
}

/* labels + inputs (dark text on white now) */
.login-form-side label { color: #44566c; font-weight: 600; }
.login-form-side .form-control {
  background: #f5f8fc;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  padding: .75rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login-form-side .form-control:focus {
  background: #fff;
  border-color: #00b8e6;
  box-shadow: 0 0 0 .2rem rgba(0, 184, 230, .22);
}
.login-form-side .checkbox label { color: #6a7a8c; font-weight: 500; }

/* Primary button — Mobily gradient */
.login-form-side .btn {
  background: linear-gradient(135deg, #0a4d9e 0%, #00b8e6 100%) !important;
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: .85rem 1rem;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: 0 12px 26px -10px rgba(0, 184, 230, .55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.login-form-side .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px -10px rgba(0, 184, 230, .7);
}
.login-form-side .btn:active { transform: translateY(0); }

#recoverform { display: none; }

/* ==========================================================================
   Responsive — stack on tablets/phones, brand panel becomes a header
   ========================================================================== */
@media (max-width: 991.98px) {
  .login-split { flex-direction: column; height: 100vh; }
  .login-brand {
    flex: 0 0 34%;
    max-width: 100%;
  }
  .login-brand-logo { max-width: 180px; padding: 10px 16px; }
  .login-brand-title { font-size: 1.3rem; margin-top: 1rem; }
  /* sit the form card right under the brand panel instead of centering it */
  .login-form-side {
    flex: 1 1 auto;
    align-items: flex-start;
    padding-top: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .login-brand { flex-basis: 32%; }
  .login-brand-title { font-size: 1.1rem; }
  .login-brand-sub { font-size: .85rem; }
  .login-form-side { padding: 1.5rem 1.1rem; }
}
