/* =====================================================================
   My Location — Auth pages (login, forgot / reset password …)
   Used by Views/Shared/_Layout2.cshtml. Brand: #181818 / #7ec540
   ===================================================================== */

:root {
    --ml-brand: #7ec540;
    --ml-brand-strong: #6cb02f;
    --ml-brand-soft: rgba(126, 197, 64, .12);
    --ml-brand-glow: rgba(126, 197, 64, .32);

    --ml-bg: #0c0d0f;
    --ml-surface: #151619;
    --ml-surface-2: #1b1d21;
    --ml-surface-3: #24272c;
    --ml-border: rgba(255, 255, 255, .07);
    --ml-border-strong: rgba(255, 255, 255, .12);

    --ml-text: #eef0f2;
    --ml-text-2: #b7bdc4;
    --ml-muted: #7d858f;
    --ml-rose: #ff6b6b;
    --ml-teal: #2cc3b5;
    --ml-navy: #2a57a4;

    --ml-radius: 22px;
    --ml-radius-sm: 14px;
    --ml-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body.ml-auth {
    min-height: 100%;
    background: var(--ml-bg);
}

body.ml-auth {
    margin: 0;
    color: var(--ml-text);
    font-family: var(--ml-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ml-auth ::selection { background: var(--ml-brand); color: #0c0d0f; }

/* ---------- Shell ---------- */
.ml-auth-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(0, 1.15fr);
    isolation: isolate;
}

    /* ambient glow behind everything */
    .ml-auth-shell::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background:
            radial-gradient(700px 480px at 85% 10%, rgba(126, 197, 64, .09), transparent 60%),
            radial-gradient(600px 520px at 10% 100%, rgba(44, 195, 181, .06), transparent 60%),
            var(--ml-bg);
    }

/* ---------- Form side ---------- */
.ml-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px 28px;
}

.ml-auth-card {
    width: 100%;
    max-width: 420px;
    animation: mlAuthRise .7s var(--ml-ease) both;
}

.ml-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.ml-auth-logo {
    width: 60px;
    height: 60px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 14px 30px -12px rgba(126, 197, 64, .45), 0 0 0 6px rgba(126, 197, 64, .08);
}

    .ml-auth-logo img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

.ml-auth-brand-text strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--ml-text);
    line-height: 1.2;
}

.ml-auth-brand-text span {
    font-size: 13px;
    color: var(--ml-muted);
}

/* Headline */
.ml-auth-card h1,
.ml-auth-card h2 {
    margin: 0 0 6px;
    font-family: var(--ml-font);
    font-size: 28px;
    font-weight: 800;
    color: var(--ml-text);
    text-align: start;
    line-height: 1.3;
}

.ml-auth-card .ml-auth-sub,
.ml-auth-card > p {
    margin: 0 0 28px;
    color: var(--ml-muted);
    font-size: 14.5px;
}

.ml-auth-card hr { border-color: var(--ml-border); margin: 18px 0 24px; }

.ml-auth-card a { color: var(--ml-brand); font-weight: 700; text-decoration: none; }
    .ml-auth-card a:hover { color: #9bd968; }

/* ---------- Fields ---------- */
.ml-auth-card .form-group,
.ml-field {
    position: relative;
    margin-bottom: 20px;
}

.ml-auth-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ml-text-2);
}

.ml-input {
    position: relative;
}

    .ml-input > .bi {
        position: absolute;
        top: 50%;
        inset-inline-start: 16px;
        transform: translateY(-50%);
        font-size: 17px;
        color: var(--ml-muted);
        pointer-events: none;
        transition: color .2s;
    }

.ml-auth-card .form-control {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 18px;
    font-family: var(--ml-font);
    font-size: 15px;
    color: var(--ml-text);
    background: var(--ml-surface-2);
    border: 1px solid var(--ml-border-strong);
    border-radius: var(--ml-radius-sm);
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.ml-input .form-control { padding-inline-start: 48px; }
.ml-input.has-toggle .form-control { padding-inline-end: 52px; }

.ml-auth-card .form-control::placeholder { color: #5d646d; }

.ml-auth-card .form-control:hover { border-color: rgba(255, 255, 255, .2); }

.ml-auth-card .form-control:focus {
    outline: 0;
    background: var(--ml-surface);
    border-color: var(--ml-brand);
    box-shadow: 0 0 0 4px var(--ml-brand-soft);
}

.ml-input:focus-within > .bi { color: var(--ml-brand); }

/* LTR values (email / password) inside the RTL page */
.ml-input,
.ml-input .form-control,
.ml-auth-card input[type=email],
.ml-auth-card input[type=password],
.ml-auth-card input.ml-ltr {
    direction: ltr;
    text-align: left;
}

/* Dark autofill */
.ml-auth-card .form-control:-webkit-autofill,
.ml-auth-card .form-control:-webkit-autofill:hover,
.ml-auth-card .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ml-text);
    caret-color: var(--ml-text);
    -webkit-box-shadow: 0 0 0 1000px var(--ml-surface-2) inset;
    transition: background-color 9999s ease-out;
}

/* Validation */
.ml-auth-card .input-validation-error,
.ml-auth-card .form-control.input-validation-error {
    border-color: rgba(255, 107, 107, .7);
}
    .ml-auth-card .input-validation-error:focus { box-shadow: 0 0 0 4px rgba(255, 107, 107, .14); }

.ml-auth-card .text-danger,
.ml-auth-card .field-validation-error {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ml-rose) !important;
}
    .ml-auth-card .field-validation-valid { display: none; }

/* Summary / alert */
.ml-auth-card .validation-summary-valid { display: none; }

.ml-auth-card .validation-summary-errors,
.ml-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    padding: 13px 16px;
    border-radius: var(--ml-radius-sm);
    background: rgba(255, 107, 107, .08);
    border: 1px solid rgba(255, 107, 107, .25);
    color: #ffb3b3 !important;
    font-size: 13.5px;
    font-weight: 600;
    animation: mlShake .4s var(--ml-ease);
}
    .ml-auth-card .validation-summary-errors::before {
        content: "\F33A"; /* bi-exclamation-circle */
        font-family: "bootstrap-icons";
        font-size: 17px;
        line-height: 1.3;
        color: var(--ml-rose);
    }
    .ml-auth-card .validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }

/* Password toggle (new markup + legacy .fa-eye) */
.ml-eye {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ml-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}
    .ml-eye:hover { color: var(--ml-text); background: rgba(255, 255, 255, .05); }
    .ml-eye:focus-visible { outline: 2px solid var(--ml-brand); outline-offset: 1px; }

.ml-auth-card .form-group > .fa-eye {
    position: absolute;
    top: 45px;
    left: 18px;
    color: var(--ml-muted);
    cursor: pointer;
}
    .ml-auth-card .form-group > .fa-eye.active { color: var(--ml-brand); }

/* ---------- Buttons ---------- */
.ml-auth-card .btn-new-style,
.ml-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    padding: 0 22px;
    font-family: var(--ml-font);
    font-size: 16px;
    font-weight: 800;
    color: #0f1a06 !important;
    background: linear-gradient(135deg, #8fd44f 0%, var(--ml-brand) 45%, var(--ml-brand-strong) 100%);
    border: 0;
    border-radius: var(--ml-radius-sm);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -12px var(--ml-brand-glow);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s var(--ml-ease), box-shadow .2s, filter .2s;
}
    .ml-auth-card .btn-new-style:hover,
    .ml-btn-primary:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
        box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 18px 36px -12px rgba(126, 197, 64, .5);
    }
    .ml-auth-card .btn-new-style:active,
    .ml-btn-primary:active { transform: translateY(0); }
    .ml-auth-card .btn-new-style:focus-visible,
    .ml-btn-primary:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(126, 197, 64, .3); }

    /* sheen */
    .ml-btn-primary::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
        transform: translateX(-120%);
        transition: transform .8s var(--ml-ease);
    }
    .ml-btn-primary:hover::after { transform: translateX(120%); }

    .ml-btn-primary .bi { font-size: 18px; transition: transform .25s var(--ml-ease); }
    .ml-btn-primary:hover .bi { transform: translateX(-4px); }

    .ml-btn-primary .ml-spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 2.5px solid rgba(15, 26, 6, .25);
        border-top-color: #0f1a06;
        border-radius: 50%;
        animation: mlSpin .7s linear infinite;
    }
    .ml-btn-primary.is-loading { pointer-events: none; filter: saturate(.85); }
        .ml-btn-primary.is-loading .ml-spinner { display: inline-block; }
        .ml-btn-primary.is-loading .bi { display: none; }

.ml-eye[aria-pressed="true"] { color: var(--ml-brand); }

.ml-auth-card .ml-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    margin-top: 12px;
    border-radius: var(--ml-radius-sm);
    border: 1px solid var(--ml-border-strong);
    color: var(--ml-text-2);
    font-size: 14.5px;
    font-weight: 700;
    transition: all .2s;
}

    .ml-auth-card .ml-btn-ghost:hover {
        color: var(--ml-text);
        border-color: rgba(126, 197, 64, .4);
        background: var(--ml-brand-soft);
    }

.ml-auth-footer {
    margin-top: 40px;
    font-size: 12.5px;
    color: #5d646d;
    text-align: center;
}

.ml-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--ml-muted);
}
    .ml-secure-note .bi { color: var(--ml-brand); font-size: 14px; }

/* ---------- Showcase side ---------- */
.ml-auth-aside {
    position: relative;
    margin: 16px;
    margin-inline-start: 0;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(520px 380px at 70% 30%, rgba(126, 197, 64, .22), transparent 65%),
        radial-gradient(480px 420px at 15% 85%, rgba(44, 195, 181, .14), transparent 60%),
        linear-gradient(160deg, #1c1e21 0%, #141517 55%, #101113 100%);
    border: 1px solid var(--ml-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 48px;
    min-height: calc(100vh - 32px);
}

    /* map grid */
    .ml-auth-aside::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
        background-size: 44px 44px;
        -webkit-mask-image: radial-gradient(ellipse 75% 70% at 55% 45%, #000 20%, transparent 80%);
        mask-image: radial-gradient(ellipse 75% 70% at 55% 45%, #000 20%, transparent 80%);
        pointer-events: none;
    }

.ml-aside-top,
.ml-aside-bottom {
    position: relative;
    z-index: 2;
}

.ml-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--ml-border-strong);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ml-text-2);
    backdrop-filter: blur(6px);
}
    .ml-chip .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--ml-brand);
        box-shadow: 0 0 0 4px rgba(126, 197, 64, .18);
        animation: mlBlink 2s ease-in-out infinite;
    }

.ml-aside-bottom h2 {
    margin: 0 0 12px;
    font-family: var(--ml-font);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    max-width: 520px;
}
    .ml-aside-bottom h2 em {
        font-style: normal;
        background: linear-gradient(90deg, #a6e36f, var(--ml-brand), var(--ml-teal));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.ml-aside-bottom p {
    margin: 0 0 26px;
    max-width: 460px;
    color: var(--ml-text-2);
    font-size: 15px;
}

.ml-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
    .ml-features li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .04);
        border: 1px solid var(--ml-border);
        font-size: 13px;
        font-weight: 700;
        color: var(--ml-text-2);
    }
        .ml-features li .bi { color: var(--ml-brand); font-size: 15px; }

/* the map scene */
.ml-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

    .ml-scene svg.ml-route {
        position: absolute;
        inset: 6% 4% 30% 4%;
        width: 92%;
        height: 64%;
    }

.ml-route .road {
    fill: none;
    stroke: rgba(255, 255, 255, .06);
    stroke-width: 14;
    stroke-linecap: round;
}
.ml-route .path {
    fill: none;
    stroke: url(#mlRouteGrad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 8 10;
    animation: mlDash 1.6s linear infinite;
}
.ml-route .stop { fill: #0f1012; stroke: var(--ml-teal); stroke-width: 3; }

/* pulsing pin */
.ml-pin {
    position: absolute;
    top: 30%;
    left: 58%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -100%);
}
    .ml-pin .ring {
        position: absolute;
        left: 50%;
        bottom: -10px;
        width: 22px;
        height: 22px;
        margin-left: -11px;
        border-radius: 50%;
        border: 2px solid var(--ml-brand);
        opacity: 0;
        animation: mlPulse 2.4s var(--ml-ease) infinite;
    }
        .ml-pin .ring:nth-child(2) { animation-delay: .8s; }
        .ml-pin .ring:nth-child(3) { animation-delay: 1.6s; }
    .ml-pin .head {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        border-radius: 50% 50% 50% 0;
        transform: rotate(-45deg);
        background: linear-gradient(135deg, #9bd968, var(--ml-brand-strong));
        box-shadow: 0 16px 34px -8px rgba(126, 197, 64, .6);
        animation: mlFloat 4s ease-in-out infinite;
    }
        .ml-pin .head .bi {
            transform: rotate(45deg);
            font-size: 26px;
            color: #0f1a06;
        }

/* floating glass cards */
.ml-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(24, 25, 28, .72);
    border: 1px solid var(--ml-border-strong);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: mlFloat 6s ease-in-out infinite;
}
    .ml-float .ic {
        width: 38px;
        height: 38px;
        flex: none;
        display: grid;
        place-items: center;
        border-radius: 11px;
        font-size: 18px;
    }
    .ml-float strong { display: block; font-size: 13.5px; color: var(--ml-text); line-height: 1.3; }
    .ml-float span { font-size: 12px; color: var(--ml-muted); }

.ml-float--a { top: 16%; right: 9%; animation-delay: -1s; }
    .ml-float--a .ic { background: var(--ml-brand-soft); color: var(--ml-brand); }
.ml-float--b { top: 44%; left: 7%; animation-delay: -3s; }
    .ml-float--b .ic { background: rgba(44, 195, 181, .14); color: var(--ml-teal); }
.ml-float--c { top: 50%; right: 22%; animation-delay: -4.5s; }
    .ml-float--c .ic { background: rgba(244, 183, 64, .14); color: #f4b740; }

/* ---------- Motion ---------- */
@keyframes mlAuthRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mlSpin { to { transform: rotate(360deg); } }
@keyframes mlDash { to { stroke-dashoffset: -36; } }
@keyframes mlFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes mlBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes mlShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes mlPulse {
    0% { transform: scale(.6); opacity: .9; }
    100% { transform: scale(4.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ml-auth *, .ml-auth *::before, .ml-auth *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .ml-auth-aside { padding: 36px; }
    .ml-float--c { display: none; }
}

@media (max-width: 991.98px) {
    .ml-auth-shell { grid-template-columns: 1fr; }
    .ml-auth-aside { display: none; }
    .ml-auth-main { padding: 48px 16px 24px; }
}

@media (max-width: 420px) {
    .ml-auth-card h1, .ml-auth-card h2 { font-size: 24px; }
    .ml-auth-brand { margin-bottom: 28px; }
}
