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

/* ── Glassmorphism ── */
/* The background (a pale drawing in the colour scheme, or the uploaded image
   under a pale wash of it) is set inline in login.html.

   Light glass with dark text (2.7.1). The page around the card keeps the site's
   own top bar and footer, whose dark text we do not change, so the background
   has to be pale; white text on the card would then be lost. The card's text
   therefore keeps Frappe's colours. */

.layout-glassmorphism .login-content.page-card {
  max-width: 460px;
  margin: 8vh auto 4vh;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

/* Single-column: no left panel */
.layout-glassmorphism .login-grid {
  grid-template-columns: 1fr;
  min-height: unset;
}

.layout-glassmorphism .login-left {
  display: none;
}

/* Show logo at top of form */
.layout-glassmorphism .login-logo-top {
  display: block;
}

.layout-glassmorphism .login-right {
  padding: 36px 40px 40px;
}

/* Frappe's login.bundle paints inputs white with a rule four classes deep
   (`.for-login .page-card .page-card-body input[type=…]`); one class more is
   needed for the frosted fields to show at all. */
.layout-glassmorphism .login-content.page-card .page-card-body input.form-control {
  background: rgba(255, 255, 255, 0.60);
  border-color: rgba(255, 255, 255, 0.90);
}

.layout-glassmorphism .login-content.page-card .page-card-body input.form-control:focus {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 560px) {
  .layout-glassmorphism .login-content.page-card {
    margin: 4vh 1rem 2vh;
  }
  .layout-glassmorphism .login-right {
    padding: 24px 20px 24px;
  }
}
