/* sign-in pages: wash-line background, glass card, flapping phoenix brand mark */
body {
    background:
        linear-gradient(135deg, rgba(28,25,23,0.80) 0%, rgba(67,20,7,0.62) 55%, rgba(154,52,18,0.40) 100%),
        url("wei-72Xh7lH72k0-unsplash.jpg") center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
/* glass card: thin tint, heavy blur, lit edges and a glare streak so it reads as a real pane */
.login-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 45%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(14px) saturate(170%) brightness(1.06);
    -webkit-backdrop-filter: blur(14px) saturate(170%) brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 1px 0 0 rgba(255,255,255,0.22),
        inset 0 -1px 0 rgba(255,255,255,0.06),
        inset 0 0 40px rgba(255,255,255,0.04),
        0 2px 6px rgba(0,0,0,0.12),
        0 40px 90px rgba(10,4,2,0.45);
    overflow: hidden;
    color: #fff;
}
/* chromium can run an svg filter on the backdrop: real lens refraction at the edges */
.login-card.refract {
    backdrop-filter: url(#glassLens);
}
/* edge: brighter top-left rim fading to the bottom-right, like light catching a bevel */
.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(255,255,255,0.75), rgba(255,255,255,0.08) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
/* glare: soft diagonal reflection across the upper pane */
.login-card::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 80%;
    height: 160%;
    background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.10) 48%, rgba(255,255,255,0.03) 56%, rgba(255,255,255,0) 70%);
    transform: rotate(8deg);
    pointer-events: none;
    z-index: -1;
}
.login-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}
.login-card .card-body,
.login-card .card-footer { background: transparent; color: #fff; }
.login-card .card-footer { border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7) !important; }
.login-card .form-label { color: rgba(255,255,255,0.9); }
.login-card .form-control,
.login-card .btn-outline-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.22) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
    color: #fff;
}
.login-card .form-control::placeholder { color: rgba(255,255,255,0.55); }
.login-card .form-control:focus {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}
.login-card .btn-outline-secondary:hover { background: rgba(255,255,255,0.24); color: #fff; }
.login-card input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(67,20,7,0.6) inset;
    transition: background-color 9999s;
}
.btn-login {
    background: linear-gradient(135deg, #C2410C 0%, #EA580C 55%, #F59E0B 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(194,65,12,0.35);
}
.btn-login:hover {
    background: linear-gradient(135deg, #9A3412 0%, #C2410C 55%, #EA580C 100%);
    color: #fff;
}
.login-card a.text-muted { color: rgba(255,255,255,0.75) !important; }
.login-card a.text-muted:hover { color: #FBBF24 !important; }
.login-card .alert-danger { background: rgba(127,29,29,0.45); border-color: rgba(252,165,165,0.4); color: #fecaca; }
body.dark .login-card { background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(15,23,42,0.25)); }
.brand-mark {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-bird {
    position: relative;
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.brand-bird img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-bird .wing-l { clip-path: polygon(0% 0%,50.5% 0%,50.5% 38%,45% 38%,45% 55%,0% 55%); transform-origin: 47% 53%; }
.brand-bird .wing-r { clip-path: polygon(49.5% 0%,100% 0%,100% 55%,55% 55%,55% 38%,49.5% 38%); transform-origin: 53% 53%; }
.brand-bird .body   { clip-path: polygon(44.5% 37%,55.5% 37%,55.5% 54%,100% 54%,100% 100%,0% 100%,0% 54%,44.5% 54%); }
.brand-mark span {
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
    
.login-card .text-muted { color: rgba(255,255,255,0.75) !important; }
.login-card .alert-info { background: rgba(30,64,175,0.35); border-color: rgba(147,197,253,0.4); color: #dbeafe; }
