/* Copyright (c) 2026, Stelden EA Ltd and contributors
   For license information, please see license.txt */

/* ── Base login card ── */
.login-content.page-card {
  background-color: #fff;
  max-width: 1100px;
  margin: 6vh auto 4vh;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 80px rgba(0,0,0,.06);
  overflow: hidden;
  padding: 0;
}

/* Two-column layout INSIDE the card */
.login-grid {
  display: grid;
  grid-template-columns: minmax(250px, 50%) 1fr;
  min-height: 500px;
}

/* LEFT column: hidden by default; layouts opt in */
.login-left {
  position: relative;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
}

/* When left panel IS shown, hide the img tag (bg-image handles it) */
.login-left .app-logo {
  display: none;
}

/* RIGHT column: title + form */
.login-right {
  display: block;
  padding: 32px 40px 40px;
}

/* Title above inputs */
.login-title {
  margin: 8px 0 16px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  padding-bottom: 16px;
}

.social-login-buttons {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Medium screens (tablet-ish) */
@media (max-width: 1200px) {
  .login-grid {
    grid-template-columns: minmax(240px, 40%) 1fr;
  }
}

/* Small screens: stack vertically */
@media (max-width: 900px) {
  .login-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }
}

/* ── Shared additions ── */

/* Logo-in-right-panel: hidden by default, layouts opt in */
.login-logo-top {
  display: none;
  text-align: center;
  margin-bottom: 20px;
}
.login-logo-top img {
  max-height: 72px;
  max-width: 200px;
  object-fit: contain;
  opacity: var(--ctx-img-opacity, 1);
}
