.login-screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
[dir="rtl"] .login-screen { direction: rtl; }

.login-panel {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(24px, 5vw, 88px);
  transform: translateY(-50%);
  padding: clamp(32px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(2, 41, 39, 0.28);
  backdrop-filter: blur(10px);
}

.login-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.login-brand img { width: 52px; height: auto; object-fit: contain; }
.login-brand h1 { font-size: var(--fs-lg); }

.login-hero {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  background:
    linear-gradient(90deg, rgba(2, 39, 38, 0.38) 0%, rgba(2, 39, 38, 0.06) 43%, rgba(255, 255, 255, 0.06) 100%),
    url("/assets/loginpic.png") center center / cover no-repeat;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 34, 33, 0.26), transparent 42%);
}

.login-hero-content {
  position: absolute;
  z-index: 1;
  top: clamp(60px, 13vh, 140px);
  left: clamp(32px, 7vw, 120px);
  width: min(410px, 34vw);
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.login-hero-logo {
  width: clamp(130px, 12vw, 180px);
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 0 var(--space-5) auto;
  border-radius: var(--radius-md);
}

.login-hero-content h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

.login-hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-base);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .login-panel {
    width: min(440px, 100%);
    max-height: none;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  .login-hero-content { display: none; }
}

@media (max-width: 520px) {
  .login-screen { padding: 16px; }
  .login-panel { width: 100%; padding: 28px 24px; border-radius: 24px; }
}
