/* =============================================================================================
   FC Visual Kit v2 "Liquid Glass" — SSO edition (FC2-343).
   DISTILLED from the canonical kit `angularApp21/src/styles/_fc-liquid-glass.scss` (Organization
   is the source of truth; this file hand-maps the kit's materials onto the STS's Razor/MDL
   markup, which shares no classes with the Angular apps). When the kit's tokens or materials
   change, re-derive the matching values here — do NOT let this file grow its own look.
   Covers: Login, Logout, LoggedOut, ForgotPassword(+Confirmation), ResetPassword(+Confirmation),
   Error, Home — all share the auth-wrap/auth-card vocabulary and _Layout.
   FROZEN, untouched: `.sidebar-menu` (solid #007ccd rail) and the version ribbon.
   ============================================================================================= */

/* --- LG0 tokens (backdrop "variant C", specular rim, float, lens band) ----------------------- */
:root {
  --fclg-bg:
    repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 90px, rgba(255,255,255,.12) 90px 96px, rgba(255,255,255,0) 96px 210px),
    repeating-linear-gradient(65deg, rgba(255,255,255,0) 0 140px, rgba(255,255,255,.07) 140px 145px, rgba(255,255,255,0) 145px 300px),
    radial-gradient(230px 230px at 72% 18%, rgba(255,255,255,.6), transparent 58%),
    radial-gradient(150px 150px at 30% 40%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(120px 120px at 56% 64%, rgba(255,255,255,.35), transparent 55%),
    radial-gradient(420px 380px at 88% 30%, rgba(0,190,230,.32), transparent 62%),
    radial-gradient(340px 320px at 16% 78%, rgba(20,80,190,.38), transparent 62%),
    radial-gradient(260px 240px at 48% 96%, rgba(90,160,240,.42), transparent 60%),
    radial-gradient(820px 560px at 20% -14%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(700px 560px at 108% 108%, rgba(70,150,240,.6), transparent 62%),
    radial-gradient(1400px 900px at 50% 50%, transparent 55%, rgba(10,70,160,.16) 100%),
    linear-gradient(120deg,#6db1f0 0%,#9ccbf6 42%,#cfe6fb 75%,#eaf4fe 100%);
  --fclg-rim: inset 0 2px 0 rgba(255,255,255,.95), inset 2px 1px 0 rgba(255,255,255,.55), inset -1px -1px 0 rgba(20,40,70,.10), inset 0 -1px 0 rgba(20,40,70,.14), 0 0 0 1px rgba(255,255,255,.40);
  --fclg-float: 0 34px 70px -26px rgba(5,40,95,.55), 0 3px 10px rgba(5,40,95,.10);
  --fclg-lens: inset 0 0 22px -8px rgba(255,255,255,.90);
}

/* --- LG1 Backdrop: one fixed composited layer at z -1; content paints transparent over it ---- */
html, body, .page-container, .main-content, .auth-wrap { background: transparent !important; }
#fc-glass-backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--fclg-bg);
}

/* --- GlassDialog treatment for the auth card (LG12 material + LG18 entry/wave) ---------------
   The auth card IS visually a popup floating on the backdrop, so it takes the dialog's deep
   frost. overflow:hidden is safe here (no floating action row rides the card edge). */
.auth-card.mdl-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(480px 170px at 10% -12%, rgba(255,255,255,.85), transparent 62%),
    linear-gradient(112deg, rgba(255,255,255,.48) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 62%, rgba(255,255,255,.30) 100%),
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.44)) !important;
  -webkit-backdrop-filter: blur(46px) saturate(200%); backdrop-filter: blur(46px) saturate(200%);
  border: 1.5px solid rgba(255,255,255,.98) !important;
  border-radius: 28px !important;
  box-shadow: inset 0 2px 0 #fff, inset 0 0 30px -10px rgba(255,255,255,.9), 0 0 0 1px rgba(150,200,255,.55), 0 0 54px -6px rgba(90,170,255,.6), 0 46px 100px -30px rgba(0,80,160,.62) !important;
  animation: fclgPop .34s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes fclgPop { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-card.mdl-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(255,255,255,.30) 50%, transparent 57%);
  animation: fclgSweep 8s ease-in-out infinite;
}
@keyframes fclgSweep { 0%, 55% { transform: translateX(-45%); } 85%, 100% { transform: translateX(45%); } }

/* Card title: the Calendar's frosted brand-blue band, adopted globally for GlassDialog
   (kit LG12/LG14 - PM 2026-09-20); the auth card is the SSO's GlassDialog. */
.auth-header .mdl-typography--headline {
  color: #fff; font-weight: 700; padding: 10px 18px; margin: 0 0 6px 0;
  background: linear-gradient(135deg, rgba(0,118,196,.92), rgba(0,88,160,.80));
  border-radius: 18px;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), 0 10px 24px -10px rgba(0,80,160,.5);
}
.auth-header .mdl-typography--body-2 { color: #33607e; }

/* --- ActionPrimary: the raised colored button (Autentificare / Trimite / Resetează) ----------
   Kit LG8 frosted-blue capsule + LG18 sheen, tactile press and thick glass inset. */
.mdl-button--raised.mdl-button--colored {
  position: relative;
  background: linear-gradient(135deg, rgba(0,124,205,.72), rgba(0,98,175,.58)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  color: #fff; text-transform: none; font-weight: 600; letter-spacing: .01em;
  height: 40px; line-height: 38px; padding: 0 26px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.85), inset 0 -6px 12px -8px rgba(0,30,80,.5), 0 10px 22px -8px rgba(10,30,60,.45) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mdl-button--raised.mdl-button--colored::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%) no-repeat;
  background-size: 320% 100%; background-position: 130% 0;
}
.mdl-button--raised.mdl-button--colored:hover { transform: translateY(-1px); }
.mdl-button--raised.mdl-button--colored:hover::after { transition: background-position .55s ease; background-position: -30% 0; }
.mdl-button--raised.mdl-button--colored:active { transform: translateY(1px) scale(.97); }
.mdl-button--raised.mdl-button--colored[disabled] {
  background: rgba(158,158,158,.35) !important; color: rgba(0,0,0,.4);
  box-shadow: none !important;
}

/* Text/link buttons ("Ai uitat parola?", "Înapoi la autentificare"): quiet brand-blue pill. */
.auth-actions .mdl-button:not(.mdl-button--raised), .links .mdl-button {
  color: #007ccd; text-transform: none; border-radius: 999px;
}
.auth-actions .mdl-button:not(.mdl-button--raised):hover { background: rgba(0,124,205,.10); }

/* --- FieldSurface: MDL textfields on glass (kit LG8 field treatment, MDL markup) ------------- */
.auth-card .mdl-textfield__input {
  background: transparent; border-bottom: 1px solid rgba(0,75,128,.35);
}
.auth-card .mdl-textfield__label { color: #33607e; }
.auth-card .mdl-textfield--floating-label.is-focused .mdl-textfield__label,
.auth-card .mdl-textfield--floating-label.is-dirty .mdl-textfield__label { color: #007ccd; }
.auth-card .mdl-textfield__label:after { background-color: #007ccd; }
.auth-card .mdl-textfield--floating-label.is-invalid .mdl-textfield__label { color: #d50000; }

/* TopStrip: the authenticated user-info bar - transparent over the backdrop, brand ink. */
.sidebar-top { background: transparent !important; box-shadow: none !important; }
.sidebar-top .user-info, .sidebar-top .user-info a { color: #004b80; }

/* The avatar disc renders as a bare circle outline when it holds no picture - hide it then
   (same :has() pattern as the kit's empty back-btn-div rule). */
.sidebar-top .user-picture-container:not(:has(img)) { display: none; }

/* The submit spinner sits above the sheen overlay. */
.btn-spinner { position: relative; z-index: 1; }

/* --- Reduced motion: kill the kit's motion layer, keep the materials ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .auth-card.mdl-card, .auth-card.mdl-card::after { animation: none !important; }
  .mdl-button--raised.mdl-button--colored:hover::after { transition: none !important; }
}
