:root {
    --atlas-purple: #6d3df2;
    --atlas-violet: #9b38f4;
    --atlas-blue: #367cf7;
    --atlas-ink: #11152d;
    --atlas-muted: #68708b;
    --atlas-border: #dfe3f1;
}

html:has(body.atlas-auth),
body.atlas-auth {
    zoom: 1 !important;
}

* { box-sizing: border-box; }

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

body.atlas-auth {
    margin: 0;
    background: #080b24;
    color: var(--atlas-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.atlas-auth__shell {
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(440px, 44%);
    min-height: 100svh;
}

.atlas-auth__story {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background: #060920 url('../img/auth/atlas-login-factory-v1.png') center / cover no-repeat;
}

.atlas-auth__story::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(circle at 74% 42%, rgba(91, 36, 229, .16), transparent 30%),
        linear-gradient(90deg, rgba(4, 7, 29, .96) 0%, rgba(7, 9, 35, .86) 48%, rgba(8, 8, 34, .48) 100%),
        linear-gradient(0deg, rgba(4, 6, 24, .74), transparent 52%);
}

.atlas-auth__story::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: .18;
    background-image: radial-gradient(rgba(132, 100, 255, .8) .7px, transparent .7px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.atlas-auth__story-content {
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100% - 7vw));
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(28px, 4.2vh, 54px) 0 clamp(24px, 3.5vh, 44px);
}

.atlas-auth__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: var(--atlas-ink);
    text-decoration: none;
}

.atlas-auth__brand--light { color: #fff; }
.atlas-auth__brand--light small { color: rgba(255, 255, 255, .74) !important; }

.atlas-auth__brand-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 35px rgba(32, 11, 87, .25);
}

.atlas-auth__brand-mark img { width: 82%; height: 82%; object-fit: contain; }
.atlas-auth__brand-mark--atlas { padding: 5px; background: rgba(255, 255, 255, .98); }
.atlas-auth__brand-mark--atlas img { width: 100%; height: 100%; }
.atlas-auth__brand-mark i { color: var(--atlas-purple); font-size: 34px; }
.atlas-auth__brand strong { display: block; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; letter-spacing: -.04em; }
.atlas-auth__brand strong em { color: #9b68ff; font-style: normal; }
.atlas-auth__brand small { display: block; margin-top: 5px; color: inherit; font-size: 13px; font-weight: 500; opacity: .78; }

.atlas-auth__hero-copy { margin-top: clamp(44px, 9vh, 104px); }
.atlas-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(84, 137, 255, .68);
    border-radius: 999px;
    background: rgba(50, 23, 112, .44);
    color: #ddd8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
}

.atlas-auth__hero-copy h1 {
    margin: 22px 0 16px;
    color: #fff;
    font-size: clamp(40px, 4.25vw, 68px);
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: -.055em;
}

.atlas-auth__hero-copy h1 span {
    color: transparent;
    background: linear-gradient(90deg, #dba7ff, #8e62ff 65%, #4a94ff);
    -webkit-background-clip: text;
    background-clip: text;
}

.atlas-auth__hero-copy p { max-width: 590px; margin: 0; color: rgba(239, 239, 255, .78); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.7; }

.atlas-auth__capabilities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(30px, 5vh, 54px);
    padding: 18px 0;
    border-block: 1px solid rgba(133, 111, 226, .22);
    background: rgba(5, 9, 34, .28);
    backdrop-filter: blur(8px);
}

.atlas-auth__capabilities article { min-width: 0; padding: 0 15px; border-right: 1px solid rgba(139, 121, 212, .2); }
.atlas-auth__capabilities article:first-child { padding-left: 0; }
.atlas-auth__capabilities article:last-child { border-right: 0; }
.atlas-auth__capabilities i { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 12px; border: 1px solid rgba(108, 119, 255, .5); border-radius: 12px; color: #ad75ff; background: rgba(54, 34, 127, .52); font-size: 22px; }
.atlas-auth__capabilities strong { display: block; margin-bottom: 5px; color: #fff; font-size: 13px; }
.atlas-auth__capabilities span { display: block; color: rgba(228, 229, 249, .62); font-size: 11px; line-height: 1.45; }

.atlas-auth__assistant-note {
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(390px, 100%);
    margin-top: auto;
    padding: 13px 15px;
    border: 1px solid rgba(102, 90, 222, .38);
    border-radius: 16px;
    background: rgba(10, 14, 51, .76);
    box-shadow: 0 18px 45px rgba(2, 4, 21, .25);
    backdrop-filter: blur(14px);
}

.atlas-auth__assistant-icon { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; border-radius: 12px; background: linear-gradient(135deg, #813af5, #495cff); font-size: 18px; font-weight: 800; }
.atlas-auth__assistant-note > span:nth-child(2) { min-width: 0; }
.atlas-auth__assistant-note strong, .atlas-auth__assistant-note em { display: block; }
.atlas-auth__assistant-note strong { font-size: 13px; }
.atlas-auth__assistant-note strong small { margin-left: 5px; padding: 2px 5px; border-radius: 5px; background: rgba(120, 93, 244, .33); font-size: 8px; }
.atlas-auth__assistant-note em { margin-top: 3px; color: rgba(230, 230, 246, .67); font-size: 11px; font-style: normal; line-height: 1.35; }
.atlas-auth__assistant-note > i { margin-left: auto; color: #b8a5ff; font-size: 20px; }

.atlas-auth__access {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 30px clamp(24px, 4vw, 64px);
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 16%, rgba(113, 87, 244, .12), transparent 25%),
        radial-gradient(circle at 6% 94%, rgba(79, 134, 250, .1), transparent 27%),
        #f8f8fd;
}

.atlas-auth__access::before, .atlas-auth__access::after { position: absolute; content: ""; border-radius: 50%; border: 1px solid rgba(119, 91, 238, .08); pointer-events: none; }
.atlas-auth__access::before { width: 430px; height: 430px; top: -250px; right: -170px; box-shadow: 0 0 0 45px rgba(114, 91, 232, .025); }
.atlas-auth__access::after { width: 360px; height: 360px; bottom: -245px; left: -210px; box-shadow: 0 0 0 55px rgba(62, 122, 237, .025); }
.atlas-auth__mobile-brand { display: none; }

.atlas-auth__card {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    padding: clamp(30px, 5vh, 54px) clamp(28px, 4vw, 52px) 25px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 30px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 30px 80px rgba(36, 29, 89, .12), 0 2px 8px rgba(35, 31, 79, .04);
    backdrop-filter: blur(18px);
}

.atlas-auth__welcome-mark { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 22px; border: 1px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #fff, #f0ebff); box-shadow: 0 12px 28px rgba(103, 58, 226, .18), inset 0 0 0 7px rgba(111, 67, 236, .05); }
.atlas-auth__welcome-mark img { width: 66px; height: 66px; object-fit: contain; }
.atlas-auth__welcome-mark--customer { padding: 9px; }
.atlas-auth__welcome-mark--customer img { width: 100%; height: 100%; border-radius: 14px; }
.atlas-auth__welcome-mark i { color: var(--atlas-purple); font-size: 45px; }
.atlas-auth__heading { margin-bottom: 30px; text-align: center; }
.atlas-auth__heading h2 { margin: 0; color: var(--atlas-ink); font-size: clamp(28px, 2.3vw, 36px); font-weight: 750; letter-spacing: -.035em; }
.atlas-auth__heading p { margin: 8px 0 0; color: var(--atlas-muted); font-size: 15px; }

.atlas-auth__alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.atlas-auth__alert i { margin-top: 1px; font-size: 18px; }
.atlas-auth__alert--success { border-color: #bce9d2; background: #edfbf4; color: #18794e; }
.atlas-auth__alert--danger { border-color: #f2c5cc; background: #fff1f3; color: #af273c; }
.atlas-auth__form { display: grid; gap: 19px; }
.atlas-auth__field label { display: block; margin: 0 0 8px; color: #343950; font-size: 13px; font-weight: 700; }
.atlas-auth__input { position: relative; display: flex; align-items: center; min-height: 57px; border: 1px solid var(--atlas-border); border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.atlas-auth__input:focus-within { border-color: #7550ef; box-shadow: 0 0 0 4px rgba(111, 70, 238, .1); transform: translateY(-1px); }
.atlas-auth__input > i { width: 50px; flex: 0 0 50px; color: #7f87a1; text-align: center; font-size: 22px; }
.atlas-auth__input input { width: 100%; min-width: 0; height: 55px !important; min-height: 55px; padding: 0 13px 0 0; border: 0; outline: 0; background: transparent; color: #191d31; font: inherit; font-size: 15px; }
.atlas-auth__input input::placeholder { color: #969cb0; opacity: 1; }
.atlas-auth__password-toggle { display: grid; place-items: center; width: 50px; height: 55px; flex: 0 0 50px; padding: 0; border: 0; outline: 0; background: transparent; color: #6f7690; cursor: pointer; font-size: 21px; }
.atlas-auth__password-toggle:focus-visible { border-radius: 9px; box-shadow: inset 0 0 0 2px #7550ef; }
.atlas-auth__submit { display: flex; align-items: center; justify-content: center; min-height: 58px; margin-top: 3px; padding: 0 22px; border: 0; border-radius: 12px; background: linear-gradient(100deg, #7938ed, #6b3ff0 56%, #3c86f6); box-shadow: 0 13px 25px rgba(102, 62, 227, .25); color: #fff; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.atlas-auth__submit i { margin-left: auto; font-size: 23px; }
.atlas-auth__submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(102, 62, 227, .31); }
.atlas-auth__submit:focus-visible { outline: 3px solid rgba(112, 71, 238, .25); outline-offset: 3px; }
.atlas-auth__submit[disabled] { cursor: wait; opacity: .75; transform: none; }
.atlas-auth__submit[disabled] i.tabler-loader-2 { animation: atlas-login-spin .8s linear infinite; }
@keyframes atlas-login-spin { to { transform: rotate(360deg); } }
.atlas-auth__security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 27px; color: #777e99; font-size: 12px; text-align: center; }
.atlas-auth__security i { color: #7450ed; font-size: 17px; }
.atlas-auth__copyright { margin: 25px 0 0; color: #989daf; font-size: 11px; text-align: center; }

@media (max-width: 1199.98px) {
    .atlas-auth__shell { grid-template-columns: minmax(0, 51%) minmax(430px, 49%); }
    .atlas-auth__story-content { width: calc(100% - 54px); }
    .atlas-auth__capabilities { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .atlas-auth__capabilities article:nth-child(2) { border-right: 0; }
    .atlas-auth__capabilities article:nth-child(3) { padding-left: 0; }
}

@media (max-width: 991.98px) {
    body.atlas-auth { background: #f8f8fd; }
    .atlas-auth__shell { display: block; }
    .atlas-auth__story { display: none; }
    .atlas-auth__access { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: 24px; }
    .atlas-auth__mobile-brand { display: block; width: min(100%, 540px); margin: 0 auto 22px; }
    .atlas-auth__mobile-brand .atlas-auth__brand-mark { width: 48px; height: 48px; flex-basis: 48px; border-color: #e5e1f4; }
    .atlas-auth__mobile-brand .atlas-auth__brand strong { font-size: 21px; }
    .atlas-auth__card { padding-top: 34px; border-radius: 24px; }
    .atlas-auth__welcome-mark { width: 74px; height: 74px; }
    .atlas-auth__welcome-mark img { width: 57px; height: 57px; }
}

@media (max-width: 575.98px) {
    .atlas-auth__access { justify-content: flex-start; padding: 18px 14px; }
    .atlas-auth__mobile-brand { margin-bottom: 16px; }
    .atlas-auth__mobile-brand .atlas-auth__brand small { font-size: 11px; }
    .atlas-auth__card { padding: 27px 18px 20px; border-radius: 20px; }
    .atlas-auth__welcome-mark { width: 66px; height: 66px; margin-bottom: 16px; }
    .atlas-auth__welcome-mark img { width: 50px; height: 50px; }
    .atlas-auth__heading { margin-bottom: 24px; }
    .atlas-auth__heading h2 { font-size: 27px; }
    .atlas-auth__heading p { font-size: 13px; line-height: 1.5; }
    .atlas-auth__field label { font-size: 13px; }
    .atlas-auth__input, .atlas-auth__submit { min-height: 54px; }
    .atlas-auth__input input, .atlas-auth__password-toggle { height: 52px !important; min-height: 52px; }
    .atlas-auth__input > i { width: 44px; flex-basis: 44px; }
    .atlas-auth__security { margin-top: 22px; font-size: 11px; }
    .atlas-auth__copyright { margin-top: 18px; }
}

@media (max-height: 760px) and (min-width: 992px) {
    .atlas-auth__hero-copy { margin-top: 35px; }
    .atlas-auth__hero-copy h1 { font-size: clamp(38px, 3.7vw, 55px); }
    .atlas-auth__capabilities { margin-top: 25px; padding-block: 13px; }
    .atlas-auth__assistant-note { margin-top: 24px; }
    .atlas-auth__card { padding-top: 28px; padding-bottom: 20px; }
    .atlas-auth__welcome-mark { width: 68px; height: 68px; margin-bottom: 14px; }
    .atlas-auth__welcome-mark img { width: 52px; height: 52px; }
    .atlas-auth__heading { margin-bottom: 21px; }
    .atlas-auth__security { margin-top: 19px; }
    .atlas-auth__copyright { margin-top: 16px; }
}

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