/* =====================================================================
   CGC Back Office - Sign-in card                assets/css/login.css
   The Sign In / Register card over the lobby (inc/member-login.php).
   Colors: CGC Color Index. Each setting is written once.
   (The Sign out button uses the lobby button style in lobby.css.)
   =====================================================================

   INDEX
   1. Backdrop ........ dims and blurs the lobby behind the card
   2. Card
   3. Title ........... logo left, "Carlisle Garden Club / Back Office" right, rule below
   4. Form ............ labels, boxes, Sign In / Register button
   5. Links and messages
   6. Small screens
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Backdrop
   --------------------------------------------------------------------- */
.cgc-login {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  background: rgba(20, 32, 24, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* ---------------------------------------------------------------------
   2. Card
   --------------------------------------------------------------------- */
.cgc-login__card {
  width: min(620px, 100%);
  max-height: 100%;
  overflow: auto;
  box-sizing: border-box;
  padding: 28px 44px 30px;
  border: 2px solid #006633;
  border-radius: 10px;
  background: #E2E9DC;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  color: #333;
  text-align: center;
  font-family: "EB Garamond", Garamond, Georgia, serif;
}


/* ---------------------------------------------------------------------
   3. Title
   --------------------------------------------------------------------- */
.cgc-login__title {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 2px solid #006633;
  color: #195D3B;
  font: 600 34px/1.2 "EB Garamond", Garamond, Georgia, serif;
  font-variant: small-caps;
}
.cgc-login__logo  { height: 108px; width: auto; }
.cgc-login__words { padding-top: 10px; text-align: center; font-style: italic; white-space: nowrap; }
.cgc-login__club,
.cgc-login__sub   { display: block; }
.cgc-login__sub   { margin-top: 2px; font-size: .82em; }


/* ---------------------------------------------------------------------
   4. Form
   --------------------------------------------------------------------- */
.cgc-login form       { margin-top: 26px; text-align: left; }
.cgc-login label      { display: block; margin: 0 0 12px; color: #195D3B; font-size: 17px; font-variant: small-caps; }
.cgc-login input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 3px;
  padding: 9px 11px;
  border: 1px solid rgba(25, 93, 59, .35);
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: 17px/1.3 Georgia, serif;
}
.cgc-login input:focus { outline: 2px solid #195D3B; outline-offset: 1px; }

.cgc-login__btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: #195D3B;
  color: #fff;
  font: 600 18px/1.2 "EB Garamond", Garamond, Georgia, serif;
  font-variant: small-caps;
  letter-spacing: .04em;
  cursor: pointer;
}
.cgc-login__btn:hover,
.cgc-login__btn:focus-visible { background: #00451D; }


/* ---------------------------------------------------------------------
   5. Links and messages
   --------------------------------------------------------------------- */
.cgc-login__links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 15px;
}
.cgc-login__links a { color: #006633; }
.cgc-login__error {
  margin: 16px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(166, 30, 34, .35);
  border-radius: 6px;
  background: #F3E8E5;
  color: #A61E22;
}
.cgc-login__note { margin: 16px 0 0; color: #195D3B; font-style: italic; }


/* ---------------------------------------------------------------------
   6. Small screens
   --------------------------------------------------------------------- */
@media (max-width: 560px) {
  .cgc-login__title { flex-wrap: wrap; justify-content: center; font-size: 26px; }
  .cgc-login__words { white-space: normal; }
}
