/* ==========================================================================
   Glass sign-in page: the same frosted glass and dark-to-warm colours as the
   sidebar inside the system. The welcome panel and the sign-in card come into
   focus from a soft blur, and the page softly blurs while signing in.
   Loaded only on the sign-in page, after the other sign-in styles.
   ========================================================================== */
body.auth-simple {
    min-height: 100vh; color: #fff;
    background:
        radial-gradient(700px 520px at 8% 12%, rgba(52,98,190,.55), transparent 62%),
        radial-gradient(760px 560px at 96% 92%, rgba(214,140,60,.50), transparent 60%),
        radial-gradient(520px 420px at 70% 8%, rgba(120,90,200,.22), transparent 65%),
        linear-gradient(160deg, #1d2230 0%, #262a38 48%, #3d2c20 100%) !important;
    background-attachment: fixed !important;
}
/* Top bar: clear glass */
body.auth-simple .portal-header {
    background: rgba(255,255,255,.06) !important; border-bottom: 1px solid rgba(255,255,255,.10) !important; box-shadow: none !important;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
body.auth-simple .portal-header strong { color: #fff !important; }
body.auth-simple .portal-header span { color: rgba(255,255,255,.62) !important; }
body.auth-simple .portal-header .auth-crest { background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* Welcome panel: dark glass, like the sidebar */
body.auth-simple .portal-information {
    padding: 34px 34px 30px !important; border-radius: 26px;
    background: linear-gradient(180deg, rgba(40,44,56,.62) 0%, rgba(34,37,48,.55) 55%, rgba(92,62,36,.55) 100%);
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 60px rgba(8,10,20,.35);
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
}
body.auth-simple .portal-crest { box-shadow: 0 10px 30px rgba(0,0,0,.35) !important; }
body.auth-simple .portal-label { color: #ffd27a !important; }
body.auth-simple .portal-information h2 { color: #fff !important; }
body.auth-simple .portal-motto { color: #ffe1a3 !important; }
body.auth-simple .portal-intro { color: rgba(255,255,255,.72) !important; }
body.auth-simple .portal-uses li { color: rgba(255,255,255,.88) !important; }
body.auth-simple .portal-uses i { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.16); border-radius: 10px !important; }
body.auth-simple .portal-help-link { color: #ffd27a !important; }

/* Sign-in card: light frosted glass */
body.auth-simple .auth-main {
    color: #212529; border-radius: 26px !important;
    background: rgba(255,255,255,.86) !important; border: 1px solid rgba(255,255,255,.6) !important;
    box-shadow: inset 0 1px 0 #fff, 0 30px 70px rgba(8,10,20,.40), 0 6px 18px rgba(8,10,20,.18) !important;
    -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
}
body.auth-simple .auth-card { background: transparent !important; box-shadow: none !important; border: 0 !important; }
body.auth-simple .auth-input input { border-radius: 14px !important; background: rgba(255,255,255,.8); }
body.auth-simple .auth-btn {
    border-radius: 14px !important; border: 0;
    background: linear-gradient(180deg, #2b8bff, #0a6cf0) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 24px rgba(0,110,255,.35);
    transition: transform .2s ease, box-shadow .2s ease !important;
}
body.auth-simple .auth-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 30px rgba(0,110,255,.42); }
body.auth-simple .auth-lang { border-radius: 12px !important; }
body.auth-simple .auth-lang a { border-radius: 9px !important; }
body.auth-simple .auth-alert { border-radius: 14px; }
body.auth-simple .portal-footer { background: transparent !important; color: rgba(255,255,255,.55) !important; border-top: 1px solid rgba(255,255,255,.08) !important; }

/* Coming into focus */
@media screen and (prefers-reduced-motion: no-preference) {
    body.auth-simple .portal-information, body.auth-simple .auth-main { animation: lg-focus .8s cubic-bezier(.2,.7,.2,1) both; }
    body.auth-simple .auth-main { animation-delay: .12s; }
    @keyframes lg-focus { from { filter: blur(14px); opacity: .2; transform: translateY(12px) scale(.985); } to { filter: none; opacity: 1; transform: none; } }
    /* Signing in: the page softly blurs */
    body.auth-simple.lg-leaving .auth-shell { filter: blur(6px); opacity: .6; transition: filter .3s, opacity .3s; pointer-events: none; }
}

/* Phones */
@media (max-width: 760px) {
    body.auth-simple .portal-information { padding: 18px 16px !important; border-radius: 20px; text-align: center; }
    body.auth-simple .auth-main { border-radius: 22px !important; }
    body.auth-simple .auth-input input { font-size: 16px; } /* stops iPhone zooming in */
}

/* Browsers without blur: solid colours */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body.auth-simple .portal-information { background: linear-gradient(180deg, #2b2f3b, #4d3826); }
    body.auth-simple .auth-main { background: #fff !important; }
}
