:root {
    --auth-navy: #031c47;
    --auth-blue: #075fff;
    --auth-cyan: #0dd8ed;
    --auth-ink: #062556;
    --auth-muted: #526d94;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background: #f4faff;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(650px, 3fr) minmax(520px, 2fr);
}

.auth-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(circle at 78% -12%, rgba(21, 153, 255, .92), transparent 39%),
        radial-gradient(circle at 98% 88%, rgba(56, 173, 255, .88), transparent 34%),
        linear-gradient(138deg, #021c48 0%, #003b86 52%, #086ccb 100%);
}

.auth-hero::before,
.auth-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(33, 186, 255, .62);
    border-radius: 50%;
    pointer-events: none;
}

.auth-hero::before {
    width: 900px;
    height: 900px;
    right: -430px;
    top: 52px;
}

.auth-hero::after {
    width: 760px;
    height: 310px;
    left: -150px;
    bottom: -120px;
    transform: rotate(-8deg);
}

.auth-hero__glow {
    position: absolute;
    width: 520px;
    height: 210px;
    right: -70px;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(94, 201, 255, .45);
    filter: blur(45px);
    pointer-events: none;
}

.auth-hero__content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: clamp(48px, 5vw, 78px);
}

.auth-brand,
.auth-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    text-decoration: none;
}

.auth-wave {
    width: 68px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
}

.auth-wave i {
    width: 6px;
    height: 19px;
    display: block;
    border-radius: 99px;
    background: linear-gradient(180deg, #06dff0, #0872ff);
    box-shadow: 0 0 18px rgba(8, 204, 245, .34);
}

.auth-wave i:nth-child(2),
.auth-wave i:nth-child(6) { height: 34px; }
.auth-wave i:nth-child(3),
.auth-wave i:nth-child(5) { height: 49px; }
.auth-wave i:nth-child(4) { height: 62px; }

.auth-brand__text {
    display: flex;
    flex-direction: column;
}

.auth-brand__text strong {
    font-size: clamp(2.25rem, 3.5vw, 3.65rem);
    line-height: .94;
    font-weight: 800;
    letter-spacing: -.065em;
}

.auth-brand__text strong span {
    color: var(--auth-cyan);
}

.auth-brand__text small {
    margin-top: 11px;
    font-size: clamp(.62rem, .8vw, .78rem);
    font-weight: 500;
    letter-spacing: .23em;
    text-transform: uppercase;
}

.auth-hero__message {
    width: min(650px, 74%);
    margin-top: clamp(58px, 8vh, 90px);
}

.auth-hero__message h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 4.2vw, 4.45rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.045em;
}

.auth-hero__message h1 span {
    color: #44e1f3;
}

.auth-hero__message p {
    max-width: 480px;
    margin: 26px 0 0;
    color: #eef6ff;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.62;
}

.auth-benefits {
    position: relative;
    z-index: 3;
    width: 300px;
    display: grid;
    gap: 15px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 24px;
    color: #fff;
    font-size: .98rem;
    line-height: 1.45;
}

.auth-benefits li > i {
    width: 76px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(24, 194, 255, .58);
    border-radius: 15px;
    color: #20e6f2;
    background: rgba(1, 49, 111, .4);
    box-shadow: inset 0 0 22px rgba(8, 106, 235, .18);
    font-size: 2rem;
}

.auth-dashboard {
    position: absolute;
    z-index: 1;
    width: min(500px, 51%);
    height: 500px;
    right: -8px;
    bottom: 20px;
    transform: perspective(1100px) rotateY(-5deg) rotateZ(-2deg);
    transform-origin: right center;
}

.auth-dashboard::before {
    content: '';
    position: absolute;
    inset: 42px 2px 105px 28px;
    z-index: -1;
    border-radius: 26px;
    background: rgba(20, 137, 255, .27);
    box-shadow: 0 0 45px rgba(39, 189, 255, .55);
    transform: translate(-28px, -22px);
}

.auth-dashboard__window,
.auth-dashboard__progress {
    border: 1px solid rgba(255, 255, 255, .82);
    color: #0a3976;
    background: rgba(252, 254, 255, .94);
    box-shadow: 0 30px 55px rgba(0, 19, 61, .34), 0 0 30px rgba(77, 201, 255, .28);
    backdrop-filter: blur(7px);
}

.auth-dashboard__window {
    width: 100%;
    height: 330px;
    position: absolute;
    top: 34px;
    right: 0;
    overflow: hidden;
    border-radius: 22px;
}

.auth-dashboard__topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    border-bottom: 1px solid #e7f0fa;
    background: #fff;
}

.auth-dashboard__mini-brand {
    color: #0c3e84;
    font-size: .75rem;
    font-weight: 800;
}

.auth-dashboard__mini-brand i,
.auth-dashboard__mini-brand span { color: #04bddd; }

.auth-dashboard__period {
    padding: 8px 10px;
    border: 1px solid #dceaf7;
    border-radius: 7px;
    font-size: .54rem;
}

.auth-dashboard__body {
    height: 260px;
    display: grid;
    grid-template-columns: 125px 1fr;
}

.auth-dashboard__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 12px;
    border-right: 1px solid #e9f1f9;
    background: #f4f9ff;
}

.auth-dashboard__menu span {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 8px;
    font-size: .62rem;
}

.auth-dashboard__menu span.active {
    color: #0868e7;
    background: #d8ecff;
}

.auth-dashboard__chart {
    padding: 27px 22px;
    font-size: .68rem;
}

.auth-dashboard__chart-row {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    align-items: center;
    gap: 19px;
    margin-top: 28px;
}

.auth-dashboard__bars {
    height: 100px;
    display: flex;
    align-items: end;
    gap: 9px;
    padding: 10px 8px;
    border-bottom: 1px solid #ccdded;
    background: repeating-linear-gradient(to bottom, transparent 0 23px, #e4eef7 24px 25px);
}

.auth-dashboard__bars i {
    width: 18px;
    height: 32%;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #09d4e4, #0b67f8);
}

.auth-dashboard__bars i:nth-child(2) { height: 43%; }
.auth-dashboard__bars i:nth-child(3) { height: 55%; }
.auth-dashboard__bars i:nth-child(4) { height: 68%; }
.auth-dashboard__bars i:nth-child(5) { height: 84%; }
.auth-dashboard__bars i:nth-child(6) { height: 100%; }

.auth-dashboard__gain {
    font-size: .72rem;
    line-height: 1.5;
}

.auth-dashboard__gain b {
    display: block;
    color: #02bfcf;
    font-size: 1.7rem;
}

.auth-dashboard__progress {
    width: 345px;
    min-height: 180px;
    position: absolute;
    right: -2px;
    bottom: 0;
    padding: 25px 28px;
    border-radius: 20px;
    font-size: .72rem;
}

.auth-dashboard__progress-body {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 17px;
}

.auth-dashboard__ring {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(#08c7d9 0 78%, #d9e8f5 78% 100%);
}

.auth-dashboard__ring::before {
    content: '';
    width: 66px;
    height: 66px;
    grid-area: 1 / 1;
    border-radius: 50%;
    background: #fff;
}

.auth-dashboard__ring b {
    z-index: 1;
    grid-area: 1 / 1;
    font-size: 1.1rem;
}

.auth-dashboard__progress-body > span:last-child {
    min-width: 130px;
}

.auth-dashboard__progress-body > span:last-child b {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.auth-dashboard__progress-body > span:last-child i {
    width: 100%;
    height: 9px;
    display: block;
    margin-top: 9px;
    border-radius: 10px;
    background: #dceafb;
}

.auth-dashboard__progress-body > span:last-child i:last-child { width: 68%; }

.auth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 4vh, 55px) clamp(32px, 3.6vw, 60px);
    background:
        radial-gradient(circle at 17% 7%, rgba(48, 175, 255, .11), transparent 31%),
        linear-gradient(135deg, #fff 0%, #f6fbff 61%, #eef8ff 100%);
}

.auth-card {
    width: min(100%, 565px);
    padding: clamp(36px, 4vw, 58px);
    border: 1px solid rgba(220, 233, 245, .86);
    border-radius: 29px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 28px 72px rgba(38, 91, 139, .14);
}

.auth-card-brand {
    width: max-content;
    margin: 0 auto;
    display: flex;
    color: var(--auth-navy);
}

.auth-card-brand .auth-wave {
    width: 62px;
    height: 54px;
}

.auth-card-brand .auth-wave i { width: 5px; }
.auth-card-brand .auth-wave i:nth-child(4) { height: 57px; }

.auth-card-brand .auth-brand__text strong {
    font-size: clamp(2.25rem, 3.1vw, 3.1rem);
}

.auth-card-brand .auth-brand__text small {
    color: #092b5a;
    font-size: .58rem;
    letter-spacing: .19em;
}

.auth-welcome {
    margin-top: 35px;
    text-align: center;
}

.auth-welcome h1,
.auth-card > h1 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 1.65rem;
    font-weight: 800;
}

.auth-welcome p,
.auth-card > p {
    margin: 7px 0 0;
    color: var(--auth-muted);
    font-size: .96rem;
}

.auth-roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 28px;
    padding: 3px;
    border: 1px solid #d4e2f0;
    border-radius: 11px;
    background: #fbfdff;
}

.auth-roles span {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 9px;
    color: #324f77;
    font-size: .81rem;
    font-weight: 600;
}

.auth-roles span i { font-size: 1.12rem; }

.auth-roles span.active {
    color: #fff;
    background: linear-gradient(135deg, #0863ff, #075bef);
    box-shadow: 0 8px 18px rgba(7, 95, 255, .22);
}

.auth-role-note {
    margin: 7px 0 18px !important;
    color: #71839a !important;
    font-size: .65rem !important;
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #092d5d;
    font-size: .79rem;
    font-weight: 700;
}

.auth-input {
    min-height: 54px;
    display: flex;
    align-items: center;
    border: 1px solid #d4e1ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(22, 59, 104, .025);
    transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus-within {
    border-color: #1677ff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, .1);
}

.auth-input > i {
    width: 52px;
    flex: 0 0 52px;
    color: #4e6b91;
    font-size: 1.22rem;
    text-align: center;
}

.auth-input input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 10px 0 0;
    border: 0;
    outline: 0;
    color: var(--auth-ink);
    background: transparent;
    font-size: .9rem;
}

.auth-input input::placeholder { color: #879bb5; }

.auth-password-toggle {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 0;
    color: #4e6b91;
    background: transparent;
    font-size: 1.1rem;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible { color: var(--auth-blue); }

.auth-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: .78rem;
    font-weight: 600;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.auth-remember input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--auth-blue);
}

.auth-form__options a {
    color: #075fff;
    text-decoration: none;
}

.auth-form__options a:hover { text-decoration: underline; }

.auth-submit {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 5px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(105deg, #064fe7 0%, #087dff 24%, #05b9ef 48%, #0872ff 72%, #064fe7 100%);
    background-size: 260% 100%;
    box-shadow: 0 13px 27px rgba(8, 108, 244, .18);
    font-size: 1rem;
    font-weight: 500;
    animation: auth-button-flow 4s linear infinite;
    transition: transform .2s, box-shadow .2s;
}

.auth-submit::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -70%;
    left: -42%;
    width: 30%;
    height: 240%;
    opacity: .7;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
    transform: rotate(18deg);
    animation: auth-button-shine 3.2s ease-in-out infinite;
}

.auth-submit span,
.auth-submit i {
    position: relative;
    z-index: 1;
}

.auth-submit i { font-size: 1.18rem; }

.auth-submit:hover,
.auth-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(8, 108, 244, .26);
}

@keyframes auth-button-flow {
    from { background-position: 0 50%; }
    to { background-position: 260% 50%; }
}

@keyframes auth-button-shine {
    0%, 18% { left: -42%; }
    58%, 100% { left: 118%; }
}

.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 29px;
    padding-top: 25px;
    border-top: 1px solid #dbe7f2;
    color: #49658a;
    font-size: .75rem;
    line-height: 1.45;
}

.auth-security-note > i {
    color: #49658a;
    font-size: 1.8rem;
}

@media (max-width: 1380px) {
    .auth-shell { grid-template-columns: minmax(620px, 1.45fr) minmax(500px, 1fr); }
    .auth-hero__content { padding: 52px; }
    .auth-hero__message { width: min(620px, 74%); }
    .auth-dashboard { right: -42px; }
}

@media (max-width: 1120px) {
    .auth-shell { display: block; }
    .auth-hero { display: none; }
    .auth-panel { min-height: 100vh; padding: 34px 20px; }
    .auth-card { width: min(100%, 565px); }
}

@media (max-width: 560px) {
    .auth-panel { padding: 0; align-items: stretch; background: #fff; }
    .auth-card { width: 100%; max-width: none; padding: 32px 20px; border: 0; border-radius: 0; box-shadow: none; }
    .auth-card-brand { gap: 11px; }
    .auth-card-brand .auth-wave { width: 50px; transform: scale(.84); }
    .auth-card-brand .auth-brand__text strong { font-size: 2rem; }
    .auth-card-brand .auth-brand__text small { font-size: .47rem; }
    .auth-welcome { margin-top: 30px; }
    .auth-welcome h1 { font-size: 1.55rem; }
    .auth-roles span { gap: 5px; font-size: .68rem; }
    .auth-role-note { font-size: .6rem !important; }
    .auth-form__options { align-items: flex-start; }
    .auth-submit { min-height: 58px; padding: 0 16px; gap: 12px; font-size: .95rem; }
}

@media (max-width: 360px) {
    .auth-submit { font-size: .88rem; }
}

@media (max-height: 820px) and (min-width: 1121px) {
    .auth-hero__content { padding-top: 36px; padding-bottom: 36px; }
    .auth-hero__message { margin-top: 42px; }
    .auth-benefits { gap: 9px; margin-top: 20px; }
    .auth-benefits li > i { width: 62px; height: 58px; font-size: 1.55rem; }
    .auth-benefits li { grid-template-columns: 62px 1fr; }
    .auth-dashboard { bottom: -35px; transform: perspective(1100px) rotateY(-5deg) rotateZ(-2deg) scale(.9); transform-origin: right bottom; }
    .auth-panel { padding-top: 26px; padding-bottom: 26px; }
    .auth-card { padding-top: 34px; padding-bottom: 34px; }
    .auth-welcome { margin-top: 22px; }
    .auth-roles { margin-top: 20px; }
    .auth-security-note { margin-top: 21px; padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input,
    .auth-submit { transition: none; }
    .auth-submit,
    .auth-submit::before { animation: none; }
}
