/* Sign up / log in "liquid glass" (Gary, 26 Nov 2026: "Make the signup form fill liquid glass like a clients portal.
   Boring white form fills aren't appealing."). Same look as the customer login (portal-glass.css). Loaded only by the
   sign-up, log-in and password pages, together with the .ag-bg background. */

body.auth-page { background: #EEF1E6; position: relative; }
.ag-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 700px at 100% 0%, #EAF2FF 0%, rgba(234,242,255,0) 60%),
              radial-gradient(900px 600px at 0% 100%, #F4FBDF 0%, rgba(244,251,223,0) 60%),
              linear-gradient(160deg, #F7F9F1 0%, #EEF1E6 55%, #ECEFF6 100%); }
.ag-bg i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.ag-bg i:nth-child(1) { width: 560px; height: 560px; left: -160px; top: -160px; background: radial-gradient(circle, #DFFF5E 0%, #C9F51D 40%, rgba(201,245,29,0) 70%); animation: agFloatA 22s ease-in-out infinite alternate; }
.ag-bg i:nth-child(2) { width: 620px; height: 620px; right: -220px; top: 22%; background: radial-gradient(circle, #A9E9FF 0%, #BCCBFF 42%, rgba(188,203,255,0) 70%); animation: agFloatB 26s ease-in-out infinite alternate; }
.ag-bg i:nth-child(3) { width: 560px; height: 560px; left: calc(50% - 280px); top: 38%; background: radial-gradient(circle, #E6FF8C 0%, #D4F7C8 45%, rgba(212,247,200,0) 70%); opacity: .6; animation: agFloatA 30s ease-in-out infinite alternate-reverse; }
@keyframes agFloatA { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 50px) scale(1.1); } }
@keyframes agFloatB { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-80px, 60px) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .ag-bg i { animation: none; } }
body.auth-page .auth-wrap { position: relative; z-index: 1; }

/* The card: frosted glass */
body.auth-page .auth-card {
  background: linear-gradient(145deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.36) 45%, rgba(255,255,255,.28) 100%);
  border: 1px solid rgba(255,255,255,.9); border-radius: 30px;
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(13,15,12,.04), 0 30px 70px -30px rgba(13,15,12,.32); }
body.auth-page .auth-card h1 { letter-spacing: -.035em; }
body.auth-page .auth-card > p.muted, body.auth-page .auth-card .muted { color: #575D52; }

/* Fields: translucent glass with an icon, lime glow on focus */
body.auth-page .field label { color: #23281D; letter-spacing: -.005em; }
body.auth-page .field input, body.auth-page .field select, body.auth-page .field textarea {
  background-color: rgba(255,255,255,.34); border: 1px solid rgba(255,255,255,.85); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 2px 6px rgba(13,15,12,.06), inset 0 0 0 1px rgba(13,15,12,.04), 0 6px 18px -14px rgba(13,15,12,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, box-shadow .25s, border-color .2s; }
body.auth-page .field input:hover { background-color: rgba(255,255,255,.5); }
body.auth-page .field input:focus, body.auth-page .field select:focus, body.auth-page .field textarea:focus {
  background-color: rgba(255,255,255,.92); border-color: #BCE812; outline: 0;
  box-shadow: 0 0 0 4px rgba(201,245,29,.32), 0 8px 24px -12px rgba(110,160,0,.45), inset 0 1px 0 #fff; }
body.auth-page .field input.bad { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(214,48,49,.14); }
body.auth-page .field input::placeholder { color: #9AA094; }
body.auth-page .field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px rgba(246,255,214,.96) inset; }
body.auth-page .field input[type=text], body.auth-page .field input[type=email], body.auth-page .field input[type=tel], body.auth-page .field input[type=password] {
  padding-left: 44px; background-repeat: no-repeat; background-position: 15px 50%; background-size: 18px 18px; }
body.auth-page #contact_name, body.auth-page #name { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8072' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
body.auth-page #company_name { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8072' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M9 7h2M13 7h2M9 11h2M13 11h2M9 15h2M13 15h2M10 21v-3h4v3'/%3E%3C/svg%3E"); }
body.auth-page #email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8072' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
body.auth-page #phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8072' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E"); }
body.auth-page #password, body.auth-page #password2, body.auth-page input[type=password] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8072' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }

/* Terms tick box */
body.auth-page .auth-card input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0 !important;
  border-radius: 7px; border: 1px solid rgba(13,15,12,.18); background: rgba(255,255,255,.7); box-shadow: inset 0 1px 2px rgba(13,15,12,.08);
  cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, box-shadow .2s; }
body.auth-page .auth-card input[type=checkbox]:checked { background: linear-gradient(180deg, #DCFF55 0%, #C9F51D 60%, #BCE812 100%); border-color: rgba(110,150,0,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px -4px rgba(110,160,0,.6); }
body.auth-page .auth-card input[type=checkbox]:checked::after { content: ''; width: 10px; height: 6px; border: solid #0D1009; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
body.auth-page .auth-card input[type=checkbox]:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(201,245,29,.4); }

/* Buttons: glossy lime, frosted ghost */
body.auth-page .btn:not(.btn-ghost):not(.btn-dark) { background: linear-gradient(180deg, #DCFF55 0%, #C9F51D 55%, #BCE812 100%);
  border-color: rgba(110,150,0,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(90,130,0,.18), 0 12px 28px -12px rgba(110,160,0,.7);
  transition: transform .2s, box-shadow .2s, background .2s; }
body.auth-page .btn:not(.btn-ghost):not(.btn-dark):hover { background: linear-gradient(180deg, #D4FB45 0%, #BEEA12 60%, #B2DE0C 100%); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 16px 32px -12px rgba(110,160,0,.75); }
body.auth-page .btn-ghost { background: rgba(255,255,255,.58); border-color: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px -10px rgba(13,15,12,.35); }

/* The "what you get" list: little lime ticks instead of dots */
body.auth-page .auth-card ul { list-style: none; padding-left: 0; }
body.auth-page .auth-card ul li { position: relative; padding-left: 26px; }
body.auth-page .auth-card ul li::before { content: ''; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, #DCFF55 0%, #C9F51D 100%) ; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 6px -2px rgba(110,160,0,.6); }
body.auth-page .auth-card ul li::after { content: ''; position: absolute; left: 5px; top: calc(.35em + 5px); width: 6px; height: 3.5px; border: solid #0D1009; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }

/* Alerts inside the card */
body.auth-page .alert { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); border-radius: 16px; }

/* No backdrop-filter: near-solid card so the text stays readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body.auth-page .auth-card { background: rgba(255,255,255,.94); }
  body.auth-page .field input { background-color: #fff; }
}
@media (max-width: 640px) {
  .ag-bg i:nth-child(1) { width: 380px; height: 380px; }
  .ag-bg i:nth-child(2) { width: 420px; height: 420px; right: -200px; }
  .ag-bg i:nth-child(3) { width: 380px; height: 380px; left: calc(50% - 190px); }
  body.auth-page .auth-card { border-radius: 26px; }
}
