.login-bg {
  position: fixed; inset: 0; z-index: -1;
  background: #1c2b2b url("../admin_asset/img/backgroundlogIn.png") center / cover no-repeat;
}

.login-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  padding: 44px;
  background: #fff; border: 1px solid var(--border);
}

.login-logo { display: flex; align-items: center; margin-bottom: 20px; }
.login-logo img { height: 56px; width: auto; max-width: 200px; object-fit: contain; }
.login-logo .sep { flex: 0 0 2px; align-self: stretch; margin: 0 12px; background: var(--company-color); }
.login-logo .title { font-weight: 600; font-size: 18px; line-height: 1.25; }

.login-card h1 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }

.login-input {
  width: 100%; padding: 10px 10px;
  font-size: 14px; background: var(--input-bg);
  border: 0; border-bottom: 1px solid #aaa; border-radius: 0;
}
.login-input:focus { outline: none; border-bottom: 2px solid var(--company-color); }
.login-field { margin-bottom: 18px; }

.login-error { min-height: 20px; margin-bottom: 14px; color: var(--danger); font-size: 13px; }

.login-card .btn-primary { width: 100%; padding: 10px 32px; font-size: 16px; }
.login-version { margin-top: 18px; text-align: center; font-size: 11px; color: var(--text-muted); }

/* "AI Enabled" badge under the logo (shown while the AI Helper is on in Administration > Settings > AI) */
.login-ai {
  display: flex; width: fit-content; align-items: center; gap: 9px; margin: -4px auto 18px; padding: 4px 14px 4px 4px;
  font-size: 14px; font-weight: 600; letter-spacing: .5px; color: var(--company-color);
  background: color-mix(in srgb, var(--company-color) 9%, #fff); border: 1px solid color-mix(in srgb, var(--company-color) 30%, #fff); border-radius: 999px;
}
.login-ai[hidden] { display: none; }
.login-ai img { width: 28px; height: 28px; display: block; }

/* Create new account / Forgot password (as in the Shamsuna template) */
.login-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.login-links[hidden], .login-install[hidden], .login-link[hidden] { display: none; }
.login-install { margin-top: 10px; text-align: center; }
.login-link { border: 0; background: none; padding: 2px 0; color: var(--company-color); font: inherit; font-size: 13px; cursor: pointer; }
.login-link:hover { text-decoration: underline; }
.login-note { margin: -8px 0 18px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.login-hint { margin: -10px 0 14px; font-size: 12px; color: var(--text-muted); }
.login-channels { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -4px 0 16px; font-size: 14px; }
.login-channels > span { color: var(--text-muted); }
.login-choice { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.login-choice.off { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) { .login-card { padding: 28px 22px; } }
.login-logo img[hidden], .login-logo .sep[hidden] { display: none; }
