/* Universal Attendance System — sign-in experience.
   Scoped to .uas-login so no rule here can reach the authenticated application chrome. */

.uas-login {
    min-height: 100vh;
    margin: -1px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    overflow: hidden;
    position: relative;
    background: #f4f8fb;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ---------------- story side ---------------- */
.uas-login__story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2rem, 4.4vw, 4.5rem);
    color: #fff;
    background:
        radial-gradient(70% 60% at 82% 12%, rgba(20, 184, 166, .38), transparent 68%),
        radial-gradient(60% 55% at 8% 88%, rgba(0, 149, 76, .35), transparent 70%),
        linear-gradient(125deg, #081b33 0%, #103b5c 52%, #0d5c63 100%);
    background-size: 160% 160%, 160% 160%, 100% 100%;
    animation: uas-gradient 18s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.uas-login__story::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .22;
    background-image:
        linear-gradient(rgba(216, 227, 238, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 227, 238, .55) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(125deg, transparent 30%, #000 100%);
}

.uas-blob {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(6px);
    opacity: .33;
    pointer-events: none;
    animation: uas-float 12s ease-in-out infinite alternate;
}
.uas-blob--a { width: 360px; height: 360px; right: -110px; top: -130px; background: #14b8a6; }
.uas-blob--b { width: 260px; height: 260px; left: -90px; bottom: -110px; background: #00954c; animation-delay: -5s; }

.uas-story__top { position: relative; z-index: 1; }

.uas-brandline {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: uas-rise .7s .05s both;
}
.uas-brandline img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    padding: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.uas-brandline .uas-brand-name {
    display: block;
    font-size: .82rem;
    letter-spacing: .19em;
    text-transform: uppercase;
    font-weight: 700;
    color: #cfe9dc;
}
.uas-brandline .uas-brand-sub {
    display: block;
    font-size: .74rem;
    color: #a9c3d8;
    margin-top: 3px;
}

.uas-eyebrow {
    display: inline-block;
    margin-top: clamp(1.5rem, 4vh, 3rem);
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #b8f2d5;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    animation: uas-rise .7s .15s both;
}

.uas-headline {
    margin: 18px 0 14px;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    font-weight: 700;
    animation: uas-rise .7s .25s both;
}
.uas-headline span {
    background: linear-gradient(100deg, #6ee7b7, #14b8a6 55%, #e0c15c);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: uas-shine 9s ease-in-out infinite alternate;
}

.uas-lede {
    max-width: 620px;
    font-size: .96rem;
    line-height: 1.65;
    color: #d6e6f2;
    margin: 0;
    animation: uas-rise .7s .35s both;
}

.uas-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
    animation: uas-rise .7s .45s both;
}
.uas-chips span {
    font-size: .72rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #e2f6ec;
    backdrop-filter: blur(3px);
}

/* the illustrated, diverse team */
.uas-people-wrap {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    animation: uas-rise .8s .55s both;
}
.uas-people {
    display: block;
    width: 100%;
    max-width: 760px;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .25));
    animation: uas-hover 7s ease-in-out infinite alternate;
}

/* ---------------- form side ---------------- */
.uas-login__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
    background:
        radial-gradient(60% 45% at 90% 6%, rgba(20, 184, 166, .10), transparent 70%),
        radial-gradient(55% 40% at 4% 96%, rgba(0, 149, 76, .09), transparent 70%),
        #f7fafc;
}

.uas-card {
    width: 100%;
    max-width: 430px;
    padding: clamp(1.6rem, 3vw, 2.6rem);
    border: 1px solid #e1eaf1;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 60px rgba(10, 30, 60, .12), 0 2px 8px rgba(10, 30, 60, .05);
    animation: uas-rise .75s .25s both;
}

.uas-card__eyebrow {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0f8b8d;
}
.uas-card h1 {
    margin: 8px 0 6px;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #0b1f3a;
}
.uas-card__sub {
    margin: 0 0 22px;
    color: #5d7189;
    font-size: .9rem;
}

.uas-card .form-label { font-weight: 600; color: #10243d; font-size: .84rem; }
.uas-card .form-control {
    border-radius: 11px;
    border-color: #d7e2eb;
    padding: .7rem .85rem;
    transition: border-color .2s, box-shadow .2s;
}
.uas-card .form-control:focus {
    border-color: #0f8b8d;
    box-shadow: 0 0 0 .2rem rgba(15, 139, 141, .15);
}
.uas-card .form-check-input:checked { background-color: #00954c; border-color: #00954c; }

.uas-btn {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: .78rem 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    background: linear-gradient(100deg, #00954c, #0f8b8d 58%, #0d5c63);
    background-size: 200% 100%;
    box-shadow: 0 10px 22px rgba(0, 149, 76, .24);
    transition: transform .18s, box-shadow .18s, background-position .6s;
}
.uas-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 149, 76, .32); background-position: 100% 0; }
.uas-btn:active { transform: translateY(0); }

.uas-card .list-group-item {
    border-radius: 11px !important;
    margin-bottom: 8px;
    border-color: #e0eaf2;
}
.uas-card .list-group-item.active { background: linear-gradient(100deg, #00954c, #0f8b8d); border-color: transparent; }

.uas-card__foot {
    margin: 18px 0 0;
    font-size: .74rem;
    color: #8296ab;
    text-align: center;
}
.uas-foot-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #0f8b8d; margin: 0 6px 1px; }

/* ---------------- motion ---------------- */
@keyframes uas-gradient {
    from { background-position: 0% 0%, 100% 100%, 0 0; }
    to   { background-position: 100% 40%, 0% 60%, 0 0; }
}
@keyframes uas-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(18px, -22px, 0) scale(1.08); }
}
@keyframes uas-hover {
    from { transform: translateY(0); }
    to   { transform: translateY(-9px); }
}
@keyframes uas-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes uas-shine {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .uas-login__story, .uas-blob, .uas-people, .uas-headline span, .uas-card,
    .uas-brandline, .uas-eyebrow, .uas-lede, .uas-chips { animation: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 991.98px) {
    .uas-login { grid-template-columns: 1fr; overflow: auto; }
    .uas-login__story { min-height: auto; padding: 2rem 1.5rem; gap: 1rem; }
    .uas-eyebrow { margin-top: 1.4rem; }
    .uas-headline { font-size: clamp(1.9rem, 7vw, 2.6rem); }
    .uas-people-wrap { display: none; }
    .uas-login__panel { padding: 2rem 1.25rem 3rem; }
}
