/* Login layout matching panel.rkeeper.app split plaque */

.panel-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 27% 73%;
  background: #fff;
}

.panel-login-left {
  position: relative;
  isolation: isolate;
  background: #1a1a3a;
  overflow: hidden;
}

.panel-login-left::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--panel-login-image, none);
  background-size: cover;
  background-position: center 35%;
  filter: saturate(0.95) contrast(0.95);
  /* mirror + zoom; shift down 15% to crop floor */
  transform: scaleX(-1) scale(1.32) translateY(15%);
  will-change: transform;
  animation: panel-login-pan 12s ease-in-out infinite alternate;
}

/* Blue opacity layer — same tokens as panel.rkeeper.app */
.panel-login-left::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, #5b5bea8c, #3f3fd659, #1414282e);
  mix-blend-mode: multiply;
  opacity: 1;
}

/* Extra solid wash so blue stays visible even if blend-mode is ignored */
.panel-login-left .panel-login-blue-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(91, 91, 234, 0.55), rgba(63, 63, 214, 0.35), rgba(20, 20, 40, 0.22));
}

@keyframes panel-login-pan {
  0% { transform: scaleX(-1) scale(1.32) translate(-5%, 15%); }
  to { transform: scaleX(-1) scale(1.32) translate(5%, 15%); }
}

.panel-login-rk {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 45px;
  line-height: 1;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.panel-login-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 56px;
  background: #fff;
}

.panel-login-card-wrap {
  width: min(520px, 100%);
}

.panel-login-card {
  width: 100%;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.panel-login-logo .logo {
  height: 165px !important;
  width: auto !important;
  max-height: none !important;
}

.panel-login-title {
  font-size: 22px;
  margin: 0;
  color: #1b1a19;
}

.panel-login-subtitle {
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}

.panel-login-primary-btn.btn-primary {
  height: 44px;
  border-radius: 6px;
  font-weight: 600;
  background: #5b5bea !important;
  border-color: #5b5bea !important;
}

.panel-login-primary-btn.btn-primary:hover,
.panel-login-primary-btn.btn-primary:focus {
  background: #3f3fd6 !important;
  border-color: #3f3fd6 !important;
}

.panel-login-or {
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-login-secondary-btn {
  height: 44px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
}

.panel-login-secondary-btn .mdi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  position: relative;
  top: 0;
}

.panel-login-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
}

.panel-login-footer-link {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.panel-login-footer-link:hover {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: underline;
}

/* Dark theme: keep light login card like panel.rkeeper.app */
[data-bs-theme="dark"] .panel-login,
[data-bs-theme="dark"] .panel-login-right {
  background: #fff;
  color: #1b1a19;
}

[data-bs-theme="dark"] .panel-login-right .form-label,
[data-bs-theme="dark"] .panel-login-title {
  color: #1b1a19;
}

[data-bs-theme="dark"] .panel-login-right .form-control {
  background: #fff;
  color: #1b1a19;
  border-color: #d0d0d0;
}

@media (max-width: 900px) {
  .panel-login {
    grid-template-columns: 1fr;
  }
  .panel-login-left {
    min-height: 180px;
  }
  .panel-login-rk {
    font-size: 32px;
  }
}
