:root {
  --c-charcoal: #1b1f24;
  --c-navy-900: #0e1a26;
  --c-navy-800: #14263a;
  --c-navy-700: #1b3348;
  --c-amber: #f5b83d;
  --c-amber-dark: #d99a1f;
  --c-gold: #e6a52e;
  --c-steel: #4b5563;
  --c-light: #f4f6f9;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--c-light);
  color: #212529;
}

.login-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============ LEFT VISUAL SIDE ============ */
.login-visual {
  position: relative;
  flex: 1 1 56%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--c-navy-900);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
}

.visual-skyline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 20, 30, 0.35) 0%,
      rgba(10, 20, 30, 0.15) 45%,
      rgba(8, 15, 24, 0.92) 100%);
  pointer-events: none;
}

.visual-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-amber), var(--c-amber-dark));
  color: var(--c-navy-900);
  font-weight: 900;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(245, 184, 61, 0.35);
}

.brand-name {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 4px;
}

.visual-quote {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 600;
}

.quote-line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-amber), transparent);
  border-radius: 2px;
}

/* ============ RIGHT FORM SIDE ============ */
.login-form-side {
  flex: 1 1 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    linear-gradient(rgba(27, 33, 36, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 33, 36, 0.028) 1px, transparent 1px),
    var(--c-light);
  background-size: 32px 32px;
}

.login-card-wrap {
  width: 100%;
  max-width: 440px;
}

.login-brand-mobile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
  justify-content: center;
  text-align: start;
}

.login-brand-mobile .brand-mark {
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}

.login-brand-mobile .brand-name {
  color: var(--c-navy-800);
  font-size: 1.4rem;
}

.login-brand-mobile .brand-sub {
  color: var(--c-steel);
  font-size: 0.8rem;
}

.login-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 38, 58, 0.16), 0 4px 14px rgba(20, 38, 58, 0.08);
  padding: 2.4rem 2.2rem 1.8rem;
  overflow: hidden;
}

.card-accent-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-amber), var(--c-amber-dark));
}

.card-head {
  text-align: center;
  margin-bottom: 1.6rem;
}

.head-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--c-amber-dark);
  background: rgba(245, 184, 61, 0.12);
  border: 1px dashed rgba(217, 154, 31, 0.45);
}

.card-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--c-navy-800);
  margin: 0 0 0.3rem;
}

.card-desc {
  color: #6c757d;
  font-size: 0.92rem;
  margin: 0;
}

.login-alert {
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
}

.login-form .form-label {
  font-weight: 700;
  color: var(--c-navy-800);
  font-size: 0.95rem;
}

.login-form .input-group-text {
  background: var(--c-navy-800);
  color: var(--c-amber);
  border: 1px solid var(--c-navy-800);
  min-width: 46px;
  justify-content: center;
}

.login-form .form-control {
  border: 1.5px solid #d7dde3;
  border-inline-start: none;
  border-radius: 0 8px 8px 0 !important;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
}

.login-form .form-control:focus {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 0.22rem rgba(245, 184, 61, 0.22);
}

.login-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.btn-login {
  flex: 1;
  background: linear-gradient(135deg, var(--c-amber), var(--c-amber-dark));
  border: none;
  color: var(--c-navy-900);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.72rem 1rem;
  border-radius: 9px;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(217, 154, 31, 0.35);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 154, 31, 0.45);
  color: var(--c-navy-900);
}

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

.btn-login-out {
  flex: 0 0 auto;
  background: #ffffff;
  border: 1.5px solid #ccd2d8;
  color: var(--c-steel);
  font-weight: 700;
  padding: 0.72rem 1.2rem;
  border-radius: 9px;
  transition: all 0.2s ease;
}

.btn-login-out:hover {
  border-color: var(--c-charcoal);
  color: var(--c-charcoal);
}

.login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid #eceff2;
  color: #8b949e;
  font-size: 0.8rem;
}

.login-foot i {
  color: var(--c-amber-dark);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .login-visual {
    display: none;
  }

  .login-form-side {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem 1.1rem;
  }

  .login-card {
    padding: 2rem 1.4rem 1.5rem;
    border-radius: 12px;
  }

  .login-actions .btn-login,
  .login-actions .btn-login-out {
    padding: 0.8rem 1rem;
  }
}