:root {
    --auth-primary: var(--at-primary, #2868f3);
    --auth-primary-hover: var(--at-primary-hover, #1f56d4);
    --auth-navy: var(--at-navy, #1f2942);
    --auth-text: var(--at-text, #2b3550);
    --auth-muted: var(--at-muted, #7d89a8);
    --auth-border: var(--at-border, #dfe5f1);
    --auth-brand-bg: #dfeafa;
    --auth-card-shadow: 0 24px 70px rgba(31, 41, 66, .06);
}

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

body.altasys-login-body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: #fff;
    color: var(--auth-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.altasys-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(390px, 33.5%) minmax(0, 1fr);
    background: #fff;
}

.altasys-auth-brand {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(2.4rem, 5vw, 4.8rem);
    border-radius: 0 70px 70px 0;
    background:
        radial-gradient(
            circle at 15% 90%,
            rgba(255, 255, 255, .52),
            transparent 31%
        ),
        var(--auth-brand-bg);
}


.altasys-auth-logo {
    position: relative;
    z-index: 2;
    width: fit-content;
    display: inline-flex;
    text-decoration: none;
}

.altasys-auth-logo img {
    display: block;
    width: 36px;
    height: auto;
}

.altasys-auth-illustration-wrap {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 1rem;
}

.altasys-auth-illustration {
    display: block;
    width: min(490px, 100%);
    max-height: 75vh;
    object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(60, 94, 153, .08));
}

.altasys-auth-brand-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: .15rem;
    color: #6f7d9d;
    font-size: .74rem;
    letter-spacing: .02em;
}

.altasys-auth-brand-copy strong {
    color: #405071;
    font-size: .78rem;
    font-weight: 600;
}

.altasys-auth-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(3rem, 7vw, 6rem) 2rem 1.5rem;
}

.altasys-auth-card {
    width: min(500px, 100%);
    padding: clamp(1.3rem, 3vw, 2.35rem);
    border: 1px solid rgba(223, 229, 241, .45);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--auth-card-shadow);
}

.altasys-auth-heading {
    margin-bottom: 2.5rem;
}

.altasys-auth-heading h1 {
    margin: 0;
    color: var(--auth-navy);
    font-size: clamp(1.15rem, 2.2vw, 1.52rem);
    font-weight: 600;
    letter-spacing: -.025em;
}

.altasys-auth-heading h1 span {
    color: var(--auth-primary);
}

.altasys-auth-heading p {
    margin: .55rem 0 0;
    color: var(--auth-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.altasys-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem 1rem;
    border-radius: 11px;
    font-size: .8rem;
    line-height: 1.45;
}

.altasys-auth-alert i {
    flex: 0 0 auto;
    margin-top: .05rem;
}

.altasys-auth-form {
    display: grid;
    gap: 1.35rem;
}

.altasys-auth-field .form-label {
    margin-bottom: .55rem;
    color: var(--auth-navy);
    font-size: .79rem;
    font-weight: 550;
}

.altasys-auth-field .form-control {
    min-height: 49px;
    padding: .75rem 1rem;
    border-color: #d6deeb;
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text);
    font-size: .86rem;
    box-shadow: none;
}

.altasys-auth-field .form-control::placeholder {
    color: #a4aec7;
}

.altasys-auth-field .form-control:focus {
    border-color: rgba(40, 104, 243, .68);
    box-shadow: 0 0 0 .22rem rgba(40, 104, 243, .1);
}

.altasys-password-control {
    position: relative;
}

.altasys-password-control .form-control {
    padding-right: 3.2rem;
}

.altasys-password-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8995b3;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.altasys-password-toggle:hover,
.altasys-password-toggle:focus-visible {
    background: #eef4ff;
    color: var(--auth-primary);
}

.altasys-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: -.25rem;
    color: #687593;
    font-size: .76rem;
}

.altasys-auth-options .form-check {
    min-height: auto;
    margin: 0;
}

.altasys-auth-options .form-check-input {
    margin-top: .18rem;
    border-color: #cbd4e4;
}

.altasys-auth-options .form-check-input:checked {
    border-color: var(--auth-primary);
    background-color: var(--auth-primary);
}

.altasys-auth-link,
.altasys-auth-register a {
    color: var(--auth-primary);
    font-weight: 550;
    text-decoration: none;
}

.altasys-auth-link:hover,
.altasys-auth-register a:hover {
    text-decoration: underline;
}

.altasys-auth-submit {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    border-radius: 8px;
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 9px 20px rgba(40, 104, 243, .18);
}

.altasys-auth-submit:hover,
.altasys-auth-submit:focus-visible {
    background: var(--auth-primary-hover);
    border-color: var(--auth-primary-hover);
}

.altasys-auth-submit i {
    font-size: .9rem;
    transition: transform 160ms ease;
}

.altasys-auth-submit:hover i {
    transform: translateX(3px);
}

.altasys-auth-register {
    margin: -.15rem 0 0;
    color: var(--auth-muted);
    font-size: .76rem;
    text-align: center;
}

.altasys-auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f5;
    color: #909bb5;
    font-size: .7rem;
    line-height: 1.4;
    text-align: center;
}

.altasys-auth-security i {
    color: #6e7fa5;
}

.altasys-auth-footer {
    width: min(500px, 100%);
    margin-top: auto;
    padding-top: 2rem;
    color: #9ba5bb;
    font-size: .69rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .altasys-auth-page {
        grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
    }

    .altasys-auth-brand {
        padding: 2.5rem 2rem;
        border-radius: 0 50px 50px 0;
    }

    .altasys-auth-content {
        padding-inline: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    .altasys-auth-page {
        display: block;
    }

    .altasys-auth-brand {
        min-height: 150px;
        padding: 1.7rem 1.6rem;
        border-radius: 0 0 38px 38px;
    }

    .altasys-auth-illustration-wrap,
    .altasys-auth-brand-copy {
        display: none;
    }

    .altasys-auth-content {
        min-height: calc(100vh - 150px);
        justify-content: flex-start;
        padding: 2.1rem 1rem 1.2rem;
    }

    .altasys-auth-card {
        padding: 1.5rem 1.25rem;
        border: 0;
        box-shadow: none;
    }

    .altasys-auth-heading {
        margin-bottom: 1.8rem;
    }

    .altasys-auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }
}

@media (max-height: 680px) and (min-width: 768px) {
    .altasys-auth-content {
        padding-top: 2.2rem;
    }

    .altasys-auth-heading {
        margin-bottom: 1.6rem;
    }

    .altasys-auth-illustration {
        max-height: 46vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
