body.auth-login-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #102a43;
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(90deg, rgba(4, 39, 49, 0.36), rgba(236, 253, 255, 0.18) 52%, rgba(4, 39, 49, 0.22)),
        linear-gradient(135deg, rgba(0, 109, 119, 0.28), rgba(255, 255, 255, 0.26)),
        #dceff2;
}

.auth-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-background::before,
.auth-background::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(26px);
    opacity: 0.26;
    animation: authGlowPulse 12s ease-in-out infinite alternate;
    will-change: opacity;
}

.auth-background::before {
    width: 520px;
    height: 520px;
    left: 10%;
    top: 18%;
    background: rgba(0, 180, 216, 0.22);
}

.auth-background::after {
    width: 620px;
    height: 620px;
    right: 9%;
    bottom: 5%;
    background: rgba(0, 109, 119, 0.18);
    animation-delay: 1.5s;
}

.auth-background-layer {
    position: absolute;
    inset: -20%;
    background-size: 180% 180%;
    opacity: 0.28;
    animation: authAuroraMove 16s ease-in-out infinite alternate;
    will-change: transform;
}

.auth-background-layer-one {
    background:
        linear-gradient(115deg, rgba(0, 109, 119, 0) 0%, rgba(0, 180, 216, 0.16) 36%, rgba(0, 109, 119, 0) 62%),
        linear-gradient(28deg, rgba(255, 255, 255, 0) 0%, rgba(202, 240, 248, 0.42) 44%, rgba(255, 255, 255, 0) 68%);
}

.auth-background-layer-two {
    background:
        linear-gradient(150deg, rgba(15, 139, 141, 0.12), rgba(255, 255, 255, 0) 42%),
        linear-gradient(22deg, rgba(0, 180, 216, 0) 30%, rgba(0, 180, 216, 0.14) 50%, rgba(0, 180, 216, 0) 76%);
    animation-delay: 1.8s;
}

.auth-background-ribbon {
    position: absolute;
    height: 190px;
    width: 74vw;
    min-width: 680px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    transform: rotate(-14deg);
    animation: authRibbonDrift 18s ease-in-out infinite alternate;
    will-change: transform;
}

.auth-background-ribbon-one {
    top: 11%;
    left: -22%;
}

.auth-background-ribbon-two {
    right: -24%;
    bottom: 8%;
    animation-delay: 2s;
}

@keyframes authAuroraMove {
    from {
        transform: translate3d(-18px, 0, 0);
    }

    to {
        transform: translate3d(22px, -18px, 0);
    }
}

@keyframes authRibbonDrift {
    from {
        transform: rotate(-14deg) translate3d(0, 0, 0);
    }

    to {
        transform: rotate(-14deg) translate3d(28px, -18px, 0);
    }
}

@keyframes authGlowPulse {
    from {
        opacity: 0.28;
    }

    to {
        opacity: 0.48;
    }
}

.auth-language-area {
    position: fixed;
    top: 22px;
    right: 28px;
    z-index: 5;
}

.auth-login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    width: min(1280px, calc(100% - 72px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    align-items: center;
    gap: 28px;
    padding: 48px 0;
}

.auth-login-shell::before {
    content: "";
    position: absolute;
    inset: calc(50% - 325px) -16px auto;
    height: 650px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 34px 110px rgba(10, 72, 83, 0.2);
    z-index: -1;
}

.auth-brand-panel {
    position: relative;
    min-height: 620px;
    padding: 52px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(145deg, rgba(0, 98, 107, 0.99), rgba(0, 152, 164, 0.94)),
        #006d77;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    box-shadow: 0 38px 110px rgba(0, 109, 119, 0.38);
    animation: authPanelEnter 0.55s ease-out both;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.auth-brand-panel::before {
    top: 118px;
}

.auth-brand-panel::after {
    bottom: 118px;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(0, 34, 40, 0.22);
}

.auth-brand-logo img {
    display: block;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}

.auth-brand-kicker {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.auth-brand-panel h1 {
    margin: 0;
    color: #ffffff;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-brand-panel p {
    max-width: 480px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.75;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 42px;
}

.auth-feature-card {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(0, 47, 54, 0.16);
    animation: authFloatCard 5.5s ease-in-out infinite alternate;
    will-change: transform;
}

.auth-feature-card:nth-child(2) {
    animation-delay: 0.8s;
}

.auth-feature-card:nth-child(3) {
    animation-delay: 1.4s;
}

.auth-feature-card:nth-child(4) {
    animation-delay: 2s;
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(202, 240, 248, 0.2);
    color: #caf0f8;
}

@keyframes authFloatCard {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-6px);
    }
}

.auth-dashboard-preview {
    margin-top: 38px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 48px rgba(0, 42, 48, 0.14);
}

.auth-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-preview-header span,
.auth-preview-list span {
    display: block;
    height: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.28);
}

.auth-preview-header span:first-child {
    width: 38%;
}

.auth-preview-header span:last-child {
    width: 22%;
}

.auth-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.auth-preview-metrics span {
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.auth-preview-bars {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 92px;
    margin-top: 18px;
}

.auth-preview-bars span {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.24);
    animation: authBarPulse 2.8s ease-in-out infinite alternate;
}

.auth-preview-bars span:nth-child(1) {
    height: 42%;
}

.auth-preview-bars span:nth-child(2) {
    height: 72%;
    animation-delay: 0.4s;
}

.auth-preview-bars span:nth-child(3) {
    height: 54%;
    animation-delay: 0.8s;
}

.auth-preview-bars span:nth-child(4) {
    height: 64%;
    animation-delay: 1.2s;
}

.auth-preview-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.auth-preview-list span:first-child {
    width: 76%;
}

.auth-preview-list span:last-child {
    width: 56%;
}

@keyframes authBarPulse {
    from {
        opacity: 0.46;
        transform: scaleY(0.92);
    }

    to {
        opacity: 0.9;
        transform: scaleY(1);
    }
}

.auth-form-card {
    width: 100%;
    box-sizing: border-box;
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 38px 110px rgba(16, 42, 67, 0.24), 0 0 0 1px rgba(15, 139, 141, 0.06);
    animation: authCardEnter 0.55s 0.08s ease-out both;
}

.auth-form-header {
    margin-bottom: 26px;
}

.auth-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #0f8b8d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.auth-form-header h2 {
    margin: 0;
    color: #102a43;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-form-header p {
    margin: 10px 0 0;
    color: #627d98;
    font-size: 14px;
    line-height: 1.6;
}

.auth-login-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #243b53;
    font-size: 12px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    color: #627d98;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-field input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 14px 0 42px;
    border: 1px solid #d4e2e8;
    border-radius: 14px;
    background: #ffffff;
    color: #102a43;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-password-wrap input {
    padding-right: 48px;
}

.auth-field input:focus {
    border-color: #0f8b8d;
    box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.13);
    transform: translateY(-1px);
}

.auth-field input::placeholder {
    color: #9fb3c8;
}

.auth-password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #627d98;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus,
.auth-password-toggle.is-active {
    background: #edf7f8;
    color: #0f8b8d;
    outline: none;
}

.auth-submit-btn {
    width: 100%;
    height: 54px;
    margin-top: 12px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #087f8c, #00a6c8 58%, #17c3d6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 20px 42px rgba(15, 139, 141, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 26px 50px rgba(15, 139, 141, 0.42);
    filter: saturate(1.08);
    outline: none;
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-form-footer {
    margin-top: 22px;
    color: #829ab1;
    text-align: center;
    font-size: 12px;
}

.auth-alert-error {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #f2b8b8;
    border-radius: 8px;
    background: #fff5f5;
    color: #9f1d1d;
    font-size: 12px;
    line-height: 1.5;
}

.auth-progress {
    height: 17px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 8px;
    background: #e7eef3;
    box-shadow: none;
}

.auth-progress .progress-bar {
    background: #0f8b8d;
    font-size: 10px;
    line-height: 17px;
}

.auth-language-area .language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #075e68;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(16, 42, 67, 0.18);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-language-area .language-toggle:hover,
.auth-language-area .language-toggle:focus {
    background: #ffffff;
    border-color: rgba(15, 139, 141, 0.24);
    box-shadow: 0 14px 32px rgba(16, 42, 67, 0.16);
    outline: none;
}

.auth-language-area .language-code {
    min-width: 24px;
    text-align: center;
}

.auth-language-area .language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 158px;
    padding: 6px;
    border: 1px solid #d9e2e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 42, 67, 0.16);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 10;
}

.auth-language-area .language-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.auth-language-area .language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #243b53;
    padding: 8px 9px;
    text-align: left;
    font-size: 12px;
    cursor: pointer;
}

.auth-language-area .language-option:hover {
    background: #f4f7f9;
}

.auth-language-area .language-option.active {
    background: #e7f6f7;
    color: #075e68;
    font-weight: 800;
}

.auth-language-area .language-option-code {
    width: 28px;
}

@keyframes authPanelEnter {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authCardEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    body.auth-login-body {
        background:
            linear-gradient(160deg, #d8eef1 0%, #f7fbfc 52%, #cbe7eb 100%);
    }

    .auth-background {
        display: none;
    }

    .auth-login-shell {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 32px));
        gap: 20px;
        padding-top: 82px;
        padding-bottom: 28px;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 28px;
        animation: none;
        box-shadow: 0 14px 34px rgba(0, 109, 119, 0.2);
    }

    .auth-brand-panel h1 {
        font-size: 34px;
    }

    .auth-feature-grid,
    .auth-dashboard-preview {
        display: none;
    }

    .auth-form-card {
        padding: 30px;
        animation: none;
        backdrop-filter: none;
        box-shadow: 0 14px 34px rgba(16, 42, 67, 0.16);
    }

    .auth-language-area .language-toggle {
        backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .auth-language-area {
        top: 14px;
        right: 14px;
    }

    .auth-login-shell {
        width: calc(100% - 24px);
        padding-top: 70px;
        padding-bottom: 24px;
    }

    .auth-brand-panel {
        padding: 24px;
    }

    .auth-form-card {
        padding: 24px;
    }

    .auth-form-header h2 {
        font-size: 26px;
    }
}

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