/* Scoped login UI — full-screen, CSS-only décor, theme-safe */

html:has(.aml-login-body),
.aml-login-body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #090011;
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

    .aml-login-body .aml-login-main {
        padding: 0;
        margin: 0;
        max-width: none;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }

.aml-login-page {
    --aml-purple: #9c27b0;
    --aml-purple-deep: #7b1fa2;
    --aml-lavender: #d8b4fe;
    --aml-card: rgba(236, 236, 240, 0.94);
    --aml-text-dark: #221c28;
    --aml-muted: #6f6876;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    color: #fff;
    background: radial-gradient(ellipse 50% 45% at 12% 18%, rgba(192, 38, 211, 0.32), transparent 58%), radial-gradient(ellipse 42% 38% at 88% 78%, rgba(126, 34, 206, 0.28), transparent 55%), radial-gradient(ellipse 55% 40% at 55% 55%, rgba(88, 28, 135, 0.18), transparent 60%), linear-gradient(145deg, #160022 0%, #0a0014 42%, #1a0030 100%);
}

/* ===== Decorative layer ===== */
.aml-login-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aml-login-fx__aml {
    position: absolute;
    left: 4%;
    top: 48%;
    transform: translateY(-50%);
    font-size: clamp(8rem, 24vw, 17rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 0.85;
    color: rgba(255, 255, 255, 0.035);
    user-select: none;
}

.aml-login-fx__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.aml-login-fx__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    animation: amlOrbFloat 9s ease-in-out infinite;
}

.aml-login-fx__orb--1 {
    width: 220px;
    height: 220px;
    left: 8%;
    top: 12%;
    background: rgba(192, 38, 211, 0.45);
}

.aml-login-fx__orb--2 {
    width: 280px;
    height: 280px;
    right: 6%;
    bottom: 10%;
    background: rgba(126, 34, 206, 0.4);
    animation-delay: -3s;
}

.aml-login-fx__orb--3 {
    width: 160px;
    height: 160px;
    left: 42%;
    bottom: 18%;
    background: rgba(232, 121, 249, 0.28);
    animation-delay: -5.5s;
}

@keyframes amlOrbFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-18px) scale(1.06);
    }
}

/* ===== Shell / grid ===== */
.aml-login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    /*    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);*/
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(1.75rem, 4.5vh, 3rem) clamp(1.5rem, 5vw, 4.5rem);
    box-sizing: border-box;
    align-items: baseline;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-content: center;
    /* justify-content: space-between; */
}

    .aml-login-shell::before {
        content: '';
        position: absolute;
        background: #a300c92b;
        width: 50%;
        height: 100%;
        left: 0;
        top: 0;
        z-index: -1;
    }

.main_logo_loginNew {
    width: 320px;
}

.aml-login-shell .left_side_login {
    flex: 0 0 50%;
    /* height: 100%; */
}
/* ===== Left brand ===== */
.aml-login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align-self: stretch; */
    ch;
    */
}

.aml-login-logo-block {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}

.aml-login-logo-mark {
    flex-shrink: 0;
    width: 68px;
    height: 76px;
    filter: drop-shadow(0 8px 20px rgba(192, 38, 211, 0.45));
}

    .aml-login-logo-mark svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.aml-login-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.aml-login-logo-name {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #e879f9;
    text-shadow: 0 0 24px rgba(232, 121, 249, 0.35);
}

.aml-login-logo-badge {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 0.32rem 0.7rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #c026d3, #9333ea);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(192, 38, 211, 0.4);
}

.aml-login-logo-formerly {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.82);
}

.aml-login-hero h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 1.18;
    color: #e9d5ff;
}

.aml-login-hero h2 {
    margin: 0 0 1.75rem;
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: #fff;
}

.aml-login-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-width: 34rem;
}

    .aml-login-points li {
        position: relative;
        padding-left: 1.45rem;
    }

        .aml-login-points li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.42rem;
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #c026d3;
            box-shadow: 0 0 0 4px rgba(192, 38, 211, 0.25), 0 0 14px rgba(232, 121, 249, 0.7);
        }

    .aml-login-points strong {
        display: block;
        margin-bottom: 0.18rem;
        font-size: 1.05rem;
        font-weight: 700;
        color: #f3e8ff;
    }

    .aml-login-points span {
        display: block;
        font-size: 0.92rem;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.76);
    }

.aml-login-brand-bottom {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-top: auto;
    padding-top: 1.75rem;
}

.aml-login-network {
    flex-shrink: 0;
    width: 118px;
    height: 104px;
    filter: drop-shadow(0 0 22px rgba(232, 121, 249, 0.55));
    animation: amlNetPulse 4.5s ease-in-out infinite;
}

    .aml-login-network svg {
        width: 100%;
        height: 100%;
        display: block;
    }

@keyframes amlNetPulse {
    0%, 100% {
        filter: drop-shadow(0 0 16px rgba(232, 121, 249, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 28px rgba(232, 121, 249, 0.75));
        transform: scale(1.03);
    }
}

.aml-login-brand-foot h3 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f3e8ff;
}

.aml-login-brand-foot p {
    margin: 0;
    max-width: 24rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

/* ===== Right card ===== */
.aml-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    flex: 0 0 50%;
}

.aml-login-card {
    width: 100%;
    max-width: 430px;
    background: var(--aml-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    padding: 2rem 1.85rem 1.55rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(192, 38, 211, 0.08);
    box-sizing: border-box;
    animation: amlCardIn 0.55s ease-out both;
}

@keyframes amlCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.aml-login-card h3 {
    margin: 0 0 0.28rem;
    font-size: 1.9rem;
    font-weight: 800;
    color: #6b1a82;
    letter-spacing: -0.02em;
}

.aml-login-card > .aml-login-lead {
    margin: 0 0 1.45rem;
    font-size: 0.9rem;
    color: var(--aml-muted);
}

.aml-login-field {
    margin-bottom: 1.05rem;
}

.aml-login-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.38rem;
    gap: 0.5rem;
}

.aml-login-field label {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--aml-text-dark);
}

.aml-login-toggle-pass {
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.74rem;
    font-weight: 500;
    color: #8a8490;
    cursor: pointer;
    white-space: nowrap;
}

    .aml-login-toggle-pass:hover {
        color: var(--aml-purple);
    }

.aml-login-input {
    position: relative;
    display: flex;
    align-items: center;
}

    .aml-login-input > i.fa {
        position: absolute;
        left: 14px;
        color: var(--aml-purple);
        font-size: 1rem;
        pointer-events: none;
        z-index: 1;
    }

    .aml-login-input > .aml-login-eye {
        position: absolute;
        right: 10px;
        left: auto;
        border: 0;
        background: transparent;
        color: #8a8490;
        cursor: pointer;
        padding: 4px;
        z-index: 1;
        line-height: 1;
    }

        .aml-login-input > .aml-login-eye:hover {
            color: var(--aml-purple);
        }

.aml-login-page .aml-login-input .form-control {
    height: 50px !important;
    padding: 0.65rem 2.55rem 0.65rem 2.6rem !important;
    border: 1.5px solid #d0cad8 !important;
    border-radius: 11px !important;
    background: #fff !important;
    background-image: none !important;
    font-size: 0.95rem !important;
    color: var(--aml-text-dark) !important;
    box-shadow: none !important;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aml-login-page .aml-login-input.is-accent .form-control {
    border-color: var(--aml-purple) !important;
}

.aml-login-page .aml-login-input .form-control:focus,
.aml-login-page .aml-login-input .form-control:active {
    border-color: var(--aml-purple) !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.2) !important;
    outline: none !important;
}

.aml-login-page .btn-aml-signin {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    margin-bottom: 0.9rem;
    padding: 0.82rem 1rem;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(90deg, #c026d3, #9c27b0) !important;
    background-image: linear-gradient(90deg, #c026d3, #9c27b0) !important;
    color: #fff !important;
    font-size: 1.08rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(156, 39, 176, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

    .aml-login-page .btn-aml-signin:hover,
    .aml-login-page .btn-aml-signin:focus {
        filter: brightness(1.05);
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(156, 39, 176, 0.5);
        color: #fff !important;
    }

.aml-login-forgot {
    display: block;
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #b45fd0;
    text-decoration: none;
}

    .aml-login-forgot:hover {
        color: var(--aml-purple-deep);
        text-decoration: underline;
    }

.aml-login-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f1a24;
}

    .aml-login-powered img {
        height: 28px;
        width: auto;
    }

.aml-login-page .text-danger,
.aml-login-page .validation-summary-errors {
    font-size: 0.85rem;
}

    .aml-login-page .validation-summary-errors ul {
        padding-left: 1.1rem;
        margin-bottom: 0.7rem;
    }

/* ===== Large desktop ===== */
@media (min-width: 1400px) {
    .aml-login-shell {
        padding-left: 5.5rem;
        /* padding-right: 5.5rem; */
        grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
    }

    .aml-login-card {
        max-width: 460px;
        padding: 2.25rem 2.1rem 1.7rem;
    }
}

/* ===== Tablet ===== */
@media (max-width: 991.98px) {
    .aml-login-shell {
        grid-template-columns: 1fr;
        padding: 1.35rem 1.15rem 1.75rem;
        gap: 1.35rem;
        align-content: start;
        align-items: start;
    }

    .aml-login-brand {
        max-width: none;
        align-self: auto;
        padding: 0;
    }

    .aml-login-brand-bottom {
        display: none;
    }

    .aml-login-logo-block {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .aml-login-hero {
        text-align: center;
    }

        .aml-login-hero h1 {
            font-size: 1.55rem;
        }

        .aml-login-hero h2 {
            font-size: 1.02rem;
            margin-bottom: 1rem;
        }

    .aml-login-points {
        max-width: 28rem;
        margin: 0 auto;
        text-align: left;
    }

    .aml-login-fx__aml {
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 7rem;
        top: 38%;
    }

    .aml-login-panel {
        height: auto;
        align-items: flex-start;
    }

    .aml-login-card {
        max-width: 460px;
        margin: 0 auto;
        animation: none;
    }

    .aml-login-shell .left_side_login,
    .aml-login-shell::before {
        display: none;
    }

    .aml-login-shell {
        flex-direction: column;
        width: 100%;
    }

    .aml-login-panel {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* ===== Mobile ===== */
@media (max-width: 767.98px) {
    .aml-login-points {
        display: none;
    }

    .aml-login-logo-mark {
        width: 56px;
        height: 62px;
    }

    .aml-login-logo-name {
        font-size: 1.4rem;
    }

    .aml-login-hero h2 {
        margin-bottom: 0.35rem;
    }

    .aml-login-card {
        padding: 1.45rem 1.2rem 1.25rem;
        border-radius: 16px;
    }

        .aml-login-card h3 {
            font-size: 1.6rem;
        }
}

@media (max-width: 480px) {
    .aml-login-hero h1 {
        font-size: 1.3rem;
    }

    .aml-login-hero h2 {
        display: none;
    }

    .aml-login-logo-formerly {
        letter-spacing: 0.06em;
        font-size: 0.64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aml-login-fx__orb,
    .aml-login-network,
    .aml-login-card {
        animation: none !important;
    }
}
