:root {
    --auth-bg: #08080c;
    --auth-bg-card: #0e0e14;
    --auth-bg-elevated: #14141c;
    --auth-bg-hover: #1a1a24;
    --auth-border: rgba(255, 255, 255, 0.06);
    --auth-border-strong: rgba(62, 107, 255, 0.2);
    --auth-border-hover: rgba(255, 255, 255, 0.12);
    --auth-text: #eeeef2;
    --auth-text-secondary: #8a8a9a;
    --auth-text-muted: #55555f;
    --auth-accent: #225EFF;
    --auth-accent-soft: rgba(34, 94, 255, 0.12);
    --auth-accent-glow: rgba(34, 94, 255, 0.2);
    --auth-green: #34d399;
    --auth-radius: 12px;
    --auth-radius-lg: 20px;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100%;
}

body.auth-body {
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.noise {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url('/images/noise-transparent.png') repeat 0 0;
    animation: noie-animation .2s infinite;
    opacity: .9;
    visibility: visible;
    pointer-events: none;
    z-index: 2;
}

@keyframes noie-animation {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim {
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}

.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.16s; }
.anim-d3 { animation-delay: 0.24s; }
.anim-d4 { animation-delay: 0.32s; }

/* Ensure article elements are always visible */
.article-body,
.article-header,
.blog-article-page main,
.card.anim {
    opacity: 1 !important;
    visibility: visible !important;
}

.auth-page,
.footer-wrapper,
.blog-article-page {
    position: relative;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

.auth-page {
    max-width: var(--site-max-width, 1100px);
    margin: 0 auto;
    width: 100%;
    flex: 1 0 auto;
    padding: 132px var(--site-shell-padding, 1.5rem) 80px;
    box-sizing: border-box;
}

body.auth-body > .footer-wrapper {
    width: 100% !important;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    margin-top: auto;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 34px;
    align-items: start;
}

.auth-intro {
    padding-top: 1.25rem;
}

.auth-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 5px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    background: rgba(52, 211, 153, 0.1);
    color: var(--auth-green);
}

.auth-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.auth-title {
    margin: 0 0 1.1rem;
    font-size: clamp(2.4rem, 5.6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.auth-title span {
    color: #6f8dff;
}

.auth-copy {
    max-width: 560px;
    margin: 0;
    color: var(--auth-text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.auth-meta {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
}

.auth-meta-value {
    color: var(--auth-text);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.auth-meta-value--accent {
    color: var(--auth-accent);
}

.auth-meta-label {
    margin-top: 0.18rem;
    color: var(--auth-text-muted);
    font-size: 0.75rem;
}

.auth-card {
    position: relative;
    padding: 26px;
    border-radius: var(--auth-radius-lg);
    background: linear-gradient(145deg, rgba(62, 107, 255, 0.07), rgba(238, 238, 242, 0.015));
    border: 1px solid var(--auth-border-strong);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(65, 200, 242, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 42%);
    pointer-events: none;
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.login-top-tabs {
    margin-bottom: 18px;
    display: flex;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid rgba(76, 122, 205, 0.35);
    background: linear-gradient(180deg, rgba(12, 18, 31, 0.95), rgba(16, 23, 38, 0.92));
    padding: 4px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-tab {
    flex: 1 1 0;
    position: relative;
    overflow: hidden;
    will-change: transform;
    touch-action: manipulation;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    color: rgb(210, 221, 242);
    text-decoration: none;
    text-align: center;
    transition:
        transform 0.14s ease-out,
        background 0.18s ease-out,
        color 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.login-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(67, 141, 255, 0.16), rgba(65, 200, 242, 0.08));
    transition: opacity 0.18s ease-out;
}

.login-tab::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(98, 162, 255, 0), rgba(98, 162, 255, 0.9), rgba(98, 162, 255, 0));
    transform: scaleX(0.55);
    opacity: 0;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.login-tab:hover {
    transform: translateY(-1px);
    color: #f7fbff;
}

.login-tab:hover::before {
    opacity: 1;
}

.login-tab:hover::after {
    opacity: 0.55;
    transform: scaleX(1);
}

.login-tab:active,
.login-tab.switching {
    transform: scale(0.97);
}

.login-tab.switching {
    animation: nm-auth-tab-switch 0.24s ease-out;
}

.login-tab--active {
    background: linear-gradient(135deg, rgba(46, 85, 169, 0.32), rgba(55, 157, 233, 0.28));
    color: #eef6ff;
    border: 1px solid rgba(127, 178, 255, 0.4);
    box-shadow: 0 10px 22px rgba(8, 16, 32, 0.42);
}

.login-tab--active::after {
    opacity: 1;
    transform: scaleX(1);
}

@keyframes nm-auth-tab-switch {
    0% { transform: scale(1); }
    45% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

.auth-card-header {
    margin-bottom: 1.1rem;
}

.auth-card-label {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--auth-accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-card-title {
    margin: 0;
    color: var(--auth-text);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.15;
}

.auth-card-copy {
    margin: 0.7rem 0 0;
    color: var(--auth-text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-label {
    font-size: 14px;
    color: var(--auth-text-secondary);
}

.login-input,
.form-control {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(20, 20, 28, 0.92);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--auth-text);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-input::placeholder,
.form-control::placeholder {
    color: var(--auth-text-muted);
}

.login-input:focus,
.form-control:focus {
    border-color: rgba(34, 94, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 94, 255, 0.45);
    background: rgba(22, 22, 31, 0.98);
}

.download-btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    background: var(--auth-accent);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 20px var(--auth-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
    cursor: pointer;
}

.download-btn:hover,
.btn-primary:hover {
    background: #184bd4;
    transform: translateY(-1px);
    box-shadow: 0 4px 30px rgba(34, 94, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.download-btn.is-loading,
.btn-primary.is-loading {
    pointer-events: none;
    filter: saturate(0.88) brightness(0.98);
    box-shadow: 0 10px 22px rgba(34, 94, 255, 0.18);
}

.auth-inline-note,
.tos,
.login-footer-text {
    color: var(--auth-text-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.tos {
    margin: 0;
}

.auth-link,
.tos a,
.login-footer-text a,
.link-btn {
    color: #7db1ff;
    text-decoration: none;
}

.auth-link:hover,
.tos a:hover,
.login-footer-text a:hover,
.link-btn:hover {
    text-decoration: underline;
}

.login-footer-text {
    margin-top: 10px;
    text-align: center;
}

.verify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.76);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.verify-modal {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, rgba(62, 107, 255, 0.07), rgba(238, 238, 242, 0.015)), var(--auth-bg-card);
    border: 1px solid var(--auth-border-strong);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.verify-modal h3 {
    margin: 0 0 10px;
    color: var(--auth-text);
    font-size: 1.4rem;
}

.verify-subtext {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--auth-text-secondary);
    line-height: 1.7;
}

.code-inputs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.code-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 28, 0.92);
    color: var(--auth-text);
}

.code-box:focus {
    outline: none;
    border-color: rgba(34, 94, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 94, 255, 0.45);
}

.verify-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.link-btn {
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.link-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nm-cursor,
.nm-cursor-outline {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
}

.nm-cursor {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--auth-accent);
}

.nm-cursor-outline {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.7);
    background: transparent;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
    transition:
        transform 0.12s ease-out,
        border-color 0.15s ease-out,
        opacity 0.2s ease-out;
}

.nm-cursor-outline--hover {
    border-color: var(--auth-accent);
    transform: translate3d(-50%, -50%, 0) scale(1.18);
}

.nm-cursor-outline--click {
    transform: translate3d(-50%, -50%, 0) scale(0.88);
}

@media (max-width: 1024px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .auth-intro {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 108px var(--site-shell-padding, 1.5rem) 64px;
    }

    .auth-title {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .auth-copy {
        font-size: 1rem;
        max-width: 100%;
    }

    .auth-meta {
        gap: 1.4rem;
    }

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

    .verify-modal {
        padding: 24px 18px;
    }

    .code-box {
        width: 44px;
        height: 52px;
    }
}

@media (max-width: 640px) {
    .verify-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    body.auth-body {
        cursor: auto;
    }

    .nm-cursor,
    .nm-cursor-outline {
        display: none;
    }
}

/* CRITICAL: Ensure all blog content is always visible */
.anim,
[class*="anim-d"],
.card.anim,
.article-body,
.article-header,
.article-shell,
.blog-article-page,
.article-shell.nm-reveal,
.article-shell.nm-reveal.in-view {
    opacity: 1 !important;
    visibility: visible !important;
}
