﻿:root {
    --auth-footer-height: 48px;
    --brand: #098fa8;
    --brand-dark: #00658f;
    --navy: #092b55;
    --muted: #65758f;
    --line: #dbe4ef;
    --msc-primary: var(--brand);
    --msc-primary-600: #087d94;
    --msc-primary-700: #00658f;
    --msc-primary-50: #eef9fb;
    --msc-primary-100: #d9f1f5;
    --msc-on-primary: #ffffff;
    --msc-focus: rgba(9, 143, 168, .25);
    --msc-danger: #E03131;
    --brand-rgba-35: rgba(9, 143, 168, .35);
    --brand-rgba-25: rgba(9, 143, 168, .25);
    --brand-rgba-18: rgba(9, 143, 168, .18);
    --brand-rgba-15: rgba(9, 143, 168, .15);
    --brand-rgba-12: rgba(9, 143, 168, .12);
    --brand-rgba-10: rgba(9, 143, 168, .10);
    --brand-rgba-08: rgba(9, 143, 168, .08);
    --brand-rgba-06: rgba(9, 143, 168, .06);
    --msc-avatar-size: 72px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    overflow-x: hidden;
}

body.auth-page {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding-bottom: var(--auth-footer-height);
    color: var(--navy);
    background: radial-gradient(ellipse 130px 170px at -2% 11%, #edf5fd 0 61%, transparent 62%), radial-gradient(ellipse 105px 145px at 103% 85%, #eef5fd 0 61%, transparent 62%), #fff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-page::before {
    position: absolute;
    z-index: -1;
    top: -215px;
    right: -135px;
    width: min(620px, 44vw);
    height: 780px;
    content: "";
    border-bottom-left-radius: 58%;
    background: linear-gradient(145deg, #48c5c7 0%, #087eae 47%, #003ca0 100%);
    transform: rotate(-6deg);
}

.auth-page::after {
    position: absolute;
    z-index: -1;
    top: 470px;
    right: -190px;
    width: 370px;
    height: 290px;
    content: "";
    border-radius: 48% 0 0 55%;
    background: linear-gradient(145deg, #42bdbf 0%, #16a9af 100%);
    transform: rotate(34deg);
}

.auth-shell {
    display: flex;
    min-height: calc(100vh - var(--auth-footer-height));
    align-items: center;
    justify-content: center;
    padding: 32px 60px 22px;
}

.auth-grid {
    display: grid;
    width: min(1312px, 100%);
    grid-template-columns: minmax(0, 1fr) 625px;
    gap: 0;
    align-items: center;
    transform: translateX(-8px);
}

.auth-brand {
    min-width: 0;
    padding-top: 4px;
    transform: translateY(5px);
}

.auth-logo {
    display: block;
    width: min(500px, 78%);
    height: auto;
    margin: 0 0 54px 50px;
    transform: translateY(-16px);
}

.auth-heading {
    margin: 0 0 10px 50px;
    color: var(--navy);
    font-size: clamp(38px, 3.15vw, 54px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.auth-subheading {
    margin: 0 0 0 50px;
    color: var(--muted);
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.45;
}

.auth-accent {
    width: 54px;
    height: 4px;
    margin: 27px 0 0 50px;
    border-radius: 4px;
    background: var(--brand);
}

.auth-illustration {
    overflow: hidden;
    width: calc(100% + 60px);
    margin: -1px 0 4px -60px;
}

    .auth-illustration img {
        display: block;
        width: 100%;
        height: auto;
        opacity: .94;
        filter: saturate(.86) brightness(1.035);
        mix-blend-mode: multiply;
    }

.auth-features {
    display: grid;
    margin: 59px 22px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.auth-feature {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 11px;
    align-items: start;
}

.auth-feature-icon {
    display: grid;
    width: 52px;
    height: 52px;
    color: #05728e;
    border: 1px solid #9ed8e3;
    border-radius: 14px;
    background: #f1fafc;
    place-items: center;
}

    .auth-feature-icon svg {
        display: block;
        width: 29px;
        height: 29px;
        margin: auto;
        overflow: visible;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
        vector-effect: non-scaling-stroke;
    }

.auth-feature strong {
    display: block;
    margin: 1px 0 5px;
    color: #075777;
    font-size: 13.5px;
}

.auth-feature > div > span {
    display: block;
    color: #75849a;
    font-size: 12.5px;
    line-height: 1.45;
}

.auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 812px;
    padding: 54px 48px 50px;
    border: 1px solid rgba(225, 231, 239, .84);
    border-radius: 20px;
    background: rgba(255, 255, 255, .965);
    box-shadow: 0 20px 55px rgba(24, 52, 83, .13);
    margin-top: 15px;
    backdrop-filter: blur(12px);
}

.auth-lock {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    margin: 0 auto 68px;
    color: #073bbc;
    border-radius: 50%;
    background: #f0f6ff;
    place-items: center;
}

    .auth-lock::before {
        position: absolute;
        inset: -15px;
        content: "";
        border: 3px dotted #dceafa;
        border-radius: 50%;
    }

    .auth-lock i {
        font-size: 48px;
    }

.auth-card .form-label {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
}

.auth-card .form-group {
    margin-bottom: 39px;
}

.auth-card .text-danger {
    font-size: 13px;
}

.auth-card-footer {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: var(--auth-footer-height);
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #18395d;
    border-top: 1px solid #e0e8f1;
    background: rgba(249, 252, 255, .96);
    font-size: 14px;
    box-shadow: 0 -4px 14px rgba(52, 79, 108, .025);
}

    .auth-card-footer i {
        color: #e2334b;
    }

@media (max-width: 1180px) {
    .auth-page::before,
    .auth-page::after {
        display: none;
    }

    .auth-shell {
        padding: 38px 34px 24px;
    }

    .auth-grid {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 46%);
        gap: 28px;
        transform: none;
    }

    .auth-brand {
        transform: none;
    }

    .auth-logo,
    .auth-heading,
    .auth-subheading,
    .auth-accent {
        margin-left: 0;
    }

    .auth-logo {
        width: min(450px, 88%);
        transform: none;
    }

    .auth-features {
        margin-top: 2px;
        grid-template-columns: 1fr;
    }

    .auth-card {
        min-height: 650px;
        margin-top: 0;
        padding: 38px 38px 36px;
        border-radius: 18px;
    }

    .auth-lock {
        width: 82px;
        height: 82px;
        margin-bottom: 45px;
    }

        .auth-lock::before {
            inset: -12px;
        }

        .auth-lock i {
            font-size: 40px;
        }

    .auth-card .form-group {
        margin-bottom: 28px;
    }
}

@media (max-width: 800px) {
    .auth-shell {
        padding: 30px 20px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-brand {
        text-align: center;
    }

    .auth-logo {
        width: min(410px, 82%);
        margin: 0 auto 25px;
    }

    .auth-heading {
        margin-left: 0;
        font-size: 36px;
    }

    .auth-subheading {
        margin-left: 0;
    }

    .auth-accent {
        margin: 20px auto 0;
    }

    .auth-illustration,
    .auth-features {
        display: none;
    }

    .auth-card {
        width: min(480px, 100%);
        min-height: 0;
        margin: 0 auto;
        padding: 38px 30px;
    }

    .auth-lock {
        width: 88px;
        height: 88px;
        margin-bottom: 38px;
    }

        .auth-lock i {
            font-size: 42px;
        }
}

@media (max-width: 480px) {
    :root {
        --auth-footer-height: 56px;
    }

    .auth-shell {
        padding: 22px 14px;
    }

    .auth-logo {
        width: 88%;
    }

    .auth-heading {
        font-size: 30px;
    }

    .auth-subheading {
        font-size: 17px;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .auth-card-footer {
        font-size: 12px;
        text-align: center;
    }
}
