/* auth_theme.css — TERRA ERP Modern Auth (v3.0)
   Design: Dark Glassmorphism — Minimal, Premium, One Accent Color
*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

/* ─── VARIABLES ─── */
:root {
    --auth-bg: #0b0f1a;
    --auth-card: rgba(255, 255, 255, 0.04);
    --auth-card-border: rgba(255, 255, 255, 0.08);
    --auth-accent: #3b82f6;
    --auth-accent-glow: rgba(59, 130, 246, 0.25);
    --auth-text: #e2e8f0;
    --auth-text-muted: #64748b;
    --auth-input-bg: rgba(255, 255, 255, 0.05);
    --auth-input-border: rgba(255, 255, 255, 0.1);
    --auth-input-focus: rgba(59, 130, 246, 0.3);
    --auth-error: #ef4444;
}

/* ─── BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--auth-bg);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 48px 16px 28px;
    color: var(--auth-text);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* ─── ANIMATED BACKGROUND ─── */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
    animation: bgDrift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, -1%) rotate(0.5deg); }
    50% { transform: translate(-1%, 2%) rotate(-0.5deg); }
    75% { transform: translate(1%, -2%) rotate(0.3deg); }
}

/* Floating orbs */
body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 100px) scale(1.15); }
}

/* ─── CARD ─── */
.auth-wrapper {
    background: var(--auth-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--auth-card-border);
    border-radius: 28px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: cardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top accent line */
.auth-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--auth-accent), transparent);
    border-radius: 0 0 4px 4px;
}

/* ─── LOGO AREA ─── */
.auth-logo-container {
    margin-bottom: 28px;
    position: relative;
}

.logo-wrapper {
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.logo-wrapper img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(1.1);
}

.auth-sys-name {
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.auth-sys-subtitle {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.auth-portal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--auth-accent);
    margin-bottom: 24px;
    padding: 10px 0;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-portal-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--auth-accent);
    border-radius: 2px;
    opacity: 0.4;
}

/* ─── FORM ─── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form-group {
    position: relative;
    text-align: right;
}

.auth-form-group input {
    width: 100%;
    background: var(--auth-input-bg);
    border: 1.5px solid var(--auth-input-border);
    border-radius: 14px;
    padding: 16px 15px 16px 45px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

html[dir="rtl"] .auth-form-group input {
    padding-right: 48px;
    padding-left: 15px;
}

.auth-form-group input::placeholder {
    color: var(--auth-text-muted);
    font-weight: 600;
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--auth-accent);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 4px var(--auth-input-focus), 0 0 30px rgba(59, 130, 246, 0.08);
}

/* ─── ICONS ─── */
.auth-icon {
    position: absolute;
    right: 16px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    pointer-events: none;
    transition: color 0.35s ease, transform 0.35s ease;
}

.auth-form-group:focus-within .auth-icon {
    color: var(--auth-accent);
    transform: translateY(-50%) scale(1.1);
}

html[dir="ltr"] .auth-icon {
    left: 16px;
    right: auto;
}

/* ─── META (Remember / Forgot) ─── */
.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.auth-meta a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    opacity: 0.8;
}

.auth-meta a:hover {
    opacity: 1;
    text-decoration: underline;
}

.auth-meta label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-meta input[type="checkbox"] {
    accent-color: var(--auth-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ─── BUTTON ─── */
.auth-btn {
    width: 100%;
    background: var(--auth-accent);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.auth-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.auth-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

.auth-btn:hover::before {
    left: 100%;
}

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

/* ─── DEVELOPER FOOTER ─── */
.auth-footer-dev {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.dev-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.dev-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.dev-brand-link:hover {
    border-color: rgba(59,130,246,0.2);
    background: rgba(59,130,246,0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.15);
}

.dev-brand-logo {
    max-height: 36px;
    max-width: 130px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter 0.3s;
}

.dev-brand-link:hover .dev-brand-logo {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(59,130,246,0.3));
}

.dev-brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-powered-by {
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--auth-accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: none;
    filter: drop-shadow(0 0 12px rgba(59,130,246,0.3));
}

.version-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--auth-accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* Contact Links Row */
.dev-contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dev-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--auth-text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dev-contact-link:hover {
    color: var(--auth-accent);
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.15);
}

.dev-contact-link svg {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.dev-contact-link:hover svg {
    opacity: 1;
}

.dev-contact-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
    user-select: none;
}

/* Phone Numbers */
.dev-phones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    direction: ltr;
}

.dev-phone-link {
    color: var(--auth-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    font-family: 'Courier New', monospace;
}

.dev-phone-link:hover {
    color: var(--auth-accent);
}

/* Copyright */
.dev-copyright {
    font-size: 0.72rem;
    color: rgba(100, 116, 139, 0.6);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Legacy support */
.developer-credit {
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    opacity: 0.6;
}

.developer-name {
    color: var(--auth-accent);
    font-weight: 800;
    opacity: 1;
}

/* ─── ERROR MESSAGE ─── */
.error-msg-card {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.92rem;
    text-align: center;
    animation: shakeIn 0.5s ease;
}

@keyframes shakeIn {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
    body {
        padding: 24px 12px;
    }

    .auth-wrapper {
        margin: 0;
        padding: 36px 24px;
        border-radius: 20px;
    }

    .auth-sys-name {
        font-size: 1.4rem;
    }
}

/* ─── PARTICLES (Pure CSS) ─── */
.auth-wrapper::after {
    content: "";
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--auth-accent);
    border-radius: 50%;
    top: 30%;
    left: 15%;
    opacity: 0.3;
    animation: particle1 12s ease-in-out infinite;
    pointer-events: none;
    box-shadow:
        90vw 10vh 0 1px rgba(59, 130, 246, 0.2),
        10vw 70vh 0 0px rgba(59, 130, 246, 0.15),
        60vw 85vh 0 2px rgba(59, 130, 246, 0.1),
        30vw 5vh 0 1px rgba(59, 130, 246, 0.2),
        80vw 55vh 0 0px rgba(59, 130, 246, 0.15);
}

@keyframes particle1 {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-20px); opacity: 0.5; }
}

/* TERRA cinematic login */
body.login-cinematic {
    --cinema-bg: #020711;
    --cinema-blue: #0369fe;
    --cinema-cyan: #38bdf8;
    --cinema-text: #f5f8ff;
    --cinema-muted: #8ea1c5;
    --cinema-line: rgba(93, 151, 255, .26);
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    color: var(--cinema-text);
    background: var(--cinema-bg);
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

body.login-cinematic::before {
    inset: 0;
    width: auto;
    height: auto;
    z-index: 0;
    animation: none;
    background:
        radial-gradient(circle at 24% 52%, rgba(3, 105, 254, .15), transparent 37%),
        radial-gradient(circle at 73% 40%, rgba(3, 105, 254, .09), transparent 31%);
}

body.login-cinematic::after { display: none; }

.cinema-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(90deg, #031024 0%, #030b1a 56%, #020713 100%);
    box-shadow: inset 0 0 110px rgba(0, 0, 0, .6);
}

.cinema-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(76, 125, 205, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 125, 205, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at center, #000 44%, transparent 100%);
    mask-image: radial-gradient(circle at center, #000 44%, transparent 100%);
}

.cinema-art {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 58vw;
    height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 7, 17, .05), rgba(2, 7, 17, .08) 65%, #030a18 98%),
        linear-gradient(180deg, rgba(2, 7, 17, .16), rgba(2, 7, 17, .54)),
        url('../brand/terra-logo-blue.jpg') center / cover no-repeat;
    filter: saturate(.9) contrast(1.05) brightness(.64);
    transform: translateZ(0);
    transition: transform .18s ease-out;
    will-change: transform;
}

.cinema-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 45% 48%, rgba(48, 151, 255, .08), transparent 38%),
        linear-gradient(90deg, transparent 0 77%, #030a18 98%);
}

.cinema-art::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(91, 153, 255, .06);
    box-shadow: inset -80px 0 110px rgba(2, 7, 17, .55);
}

.cinema-art-copy {
    position: absolute;
    z-index: 3;
    left: clamp(32px, 6vw, 110px);
    bottom: clamp(42px, 8vh, 100px);
    max-width: 500px;
    direction: rtl;
    text-align: right;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}

.cinema-art-copy span {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid rgba(117, 176, 255, .2);
    border-radius: 999px;
    color: #8dc6ff;
    background: rgba(3, 12, 30, .42);
    font-size: .8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.cinema-art-copy strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: .95;
    letter-spacing: .04em;
    direction: ltr;
    text-align: left;
}

.cinema-art-copy small {
    display: block;
    margin-top: 13px;
    color: rgba(220, 234, 255, .78);
    font-size: .92rem;
    font-weight: 600;
}

.cinema-art-orbit {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(91, 172, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(3, 105, 254, .08), inset 0 0 40px rgba(3, 105, 254, .05);
}

.orbit-one { width: 42vw; height: 42vw; left: 4vw; top: 12vh; }
.orbit-two { width: 27vw; height: 27vw; left: 12vw; top: 25vh; border-style: dashed; opacity: .65; }

#flowCanvas {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    width: 58vw;
    height: 100vh;
    pointer-events: none;
}

.cinema-seam {
    position: absolute;
    z-index: 4;
    left: 49vw;
    top: 0;
    width: 18vw;
    height: 100vh;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #030a18 68%, #030815);
}

.cinema-login-zone {
    position: absolute;
    z-index: 5;
    top: 0;
    right: clamp(22px, 4vw, 70px);
    width: clamp(430px, 39vw, 610px);
    height: 100vh;
    display: flex;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 151, 255, .25) transparent;
}

.cinema-login-inner {
    width: 100%;
    position: relative;
    padding: 30px 4px;
    transition: transform .18s ease-out;
    will-change: transform;
}

.cinema-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    gap: 18px;
    margin-bottom: 18px;
}

.cinema-terra-logo {
    width: 224px;
    height: 72px;
    overflow: hidden;
    display: block;
    border-radius: 15px;
    border: 1px solid rgba(93, 151, 255, .2);
    background: #0369fe;
    box-shadow: 0 0 24px rgba(3, 105, 254, .11);
}

.cinema-terra-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.cinema-company-badge {
    width: 130px;
    height: 72px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 117, 47, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    color: #ea5d20;
    box-shadow: 0 0 24px rgba(255, 100, 32, .07), inset 0 1px 0 rgba(255, 255, 255, .05);
    font-size: 1.15rem;
    font-weight: 900;
}

.cinema-company-badge img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 7px; }
.cinema-company-name { margin: 4px 0; color: #eef4ff; font-size: 1.18rem; font-weight: 700; text-align: right; }

.cinema-role {
    width: max-content;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(3, 105, 254, .16);
    border-radius: 999px;
    color: #56aaff;
    background: rgba(3, 105, 254, .08);
    font-size: .88rem;
    font-weight: 700;
}

.cinema-role::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2c91ff;
    box-shadow: 0 0 12px #1686ff;
}

.cinema-login-inner > h1 {
    margin: 0 0 27px;
    color: #f8fbff;
    font-size: clamp(2.7rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
    text-align: right;
    text-shadow: 0 0 24px rgba(255, 255, 255, .03);
}

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

.cinema-field {
    position: relative;
    height: 70px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    direction: rtl;
    overflow: hidden;
    border: 1px solid rgba(109, 162, 255, .24);
    border-radius: 17px;
    background:
        linear-gradient(90deg, rgba(3, 105, 254, .075), transparent 26%),
        linear-gradient(180deg, rgba(7, 19, 41, .65), rgba(5, 14, 31, .36));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
    backdrop-filter: blur(18px);
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease, transform .18s ease-out;
    will-change: transform;
}

.cinema-field::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(66, 169, 255, .8), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity .3s ease;
}

.cinema-field:hover,
.cinema-field:focus-within {
    border-color: rgba(82, 155, 255, .6);
    background:
        linear-gradient(90deg, rgba(3, 105, 254, .12), transparent 30%),
        linear-gradient(180deg, rgba(10, 25, 52, .72), rgba(6, 16, 35, .42));
    box-shadow: 0 0 23px rgba(3, 105, 254, .14), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.cinema-field:hover::before,
.cinema-field:focus-within::before { opacity: .72; }

.cinema-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f4f7ff;
    font: 600 1.08rem/1 'Cairo', Tahoma, Arial, sans-serif;
    text-align: right;
}

.cinema-field input::placeholder { color: #8ea1c5; opacity: .86; }
.cinema-field-icon { flex: 0 0 auto; color: #dbe7ff; opacity: .86; }

.cinema-password-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 9px;
    color: #9db2d6;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.cinema-password-toggle:hover { color: #5db8ff; background: rgba(3, 105, 254, .1); transform: scale(1.05); }

.cinema-controls {
    margin-top: -1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    direction: rtl;
    font-size: .88rem;
}

.cinema-controls > a { color: #48a7ff; text-decoration: none; font-weight: 700; }
.cinema-controls > a:hover { color: #83c9ff; text-shadow: 0 0 12px rgba(46, 155, 255, .35); }

.cinema-remember { display: flex; align-items: center; gap: 9px; color: #d9e3f6; cursor: pointer; font-weight: 600; }
.cinema-remember input { position: absolute; opacity: 0; pointer-events: none; }
.cinema-checkbox { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(173, 198, 255, .52); border-radius: 7px; transition: .2s; }
.cinema-remember input:checked + .cinema-checkbox { border-color: var(--cinema-blue); background: var(--cinema-blue); box-shadow: 0 0 15px rgba(3, 105, 254, .38); }
.cinema-remember input:checked + .cinema-checkbox::after { content: '✓'; color: #fff; font-size: .84rem; font-weight: 900; }

.cinema-login-btn {
    position: relative;
    width: 100%;
    height: 70px;
    margin-top: 3px;
    padding: 0 24px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(90deg, #0059e5, #0a7aff 43%, #0369fe);
    box-shadow: 0 0 30px rgba(3, 105, 254, .32), 0 0 80px rgba(3, 105, 254, .13), inset 0 1px 0 rgba(255, 255, 255, .22);
    font: 800 1.25rem/1 'Cairo', Tahoma, Arial, sans-serif;
    cursor: pointer;
    transition: transform .22s ease, filter .22s ease;
}

.cinema-login-btn:hover { transform: translateY(-2px); filter: brightness(1.06); background: linear-gradient(90deg, #0059e5, #0a7aff 43%, #0369fe); }
.cinema-login-btn:active { transform: scale(.99); }
.cinema-login-btn:disabled { cursor: wait; opacity: .82; transform: none; }
.cinema-login-btn::before { top: -50%; bottom: -50%; left: -25%; width: 18%; height: auto; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent); animation: cinemaShine 4.3s linear infinite; transition: none; }
.cinema-login-btn:hover::before { left: auto; }
.cinema-login-arrow { position: absolute; left: 23px; top: 50%; transform: translateY(-52%); font-size: 1.55rem; font-weight: 400; }

@keyframes cinemaShine { from { left: -25%; } to { left: 125%; } }

.cinema-trust {
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    border-top: 1px solid rgba(92, 143, 235, .15);
    color: #d8e2f5;
    font-size: .76rem;
    font-weight: 600;
}

.cinema-trust span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.cinema-trust svg { width: 18px; height: 18px; opacity: .85; }

.login-cinematic .error-msg-card {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-color: rgba(248, 113, 113, .28);
    border-radius: 12px;
    color: #fecaca;
    background: rgba(127, 29, 29, .22);
    font-size: .82rem;
    backdrop-filter: blur(12px);
}

.login-cinematic .auth-footer-dev {
    margin-top: 19px;
    padding-top: 0;
    border: 0;
    color: rgba(161, 181, 217, .68);
    font-size: .72rem;
    line-height: 1.6;
}

.login-cinematic .dev-brand { margin-bottom: 7px; display: flex; flex-direction: row; justify-content: center; gap: 9px; }
.login-cinematic .dev-brand-link { padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .025); }
.login-cinematic .dev-brand-logo { max-height: 25px; max-width: 92px; }
.login-cinematic .dev-brand-name { font-size: 1rem; letter-spacing: 2px; }
.login-cinematic .dev-brand-meta { gap: 6px; }
.login-cinematic .dev-powered-by { font-size: .62rem; }
.login-cinematic .version-badge { padding: 2px 7px; font-size: .57rem; }
.login-cinematic .dev-contact-row { margin-bottom: 4px; gap: 4px; }
.login-cinematic .dev-contact-link { padding: 2px 5px; font-size: .66rem; }
.login-cinematic .dev-phones { margin-bottom: 4px; }
.login-cinematic .dev-phone-link { font-family: 'Cairo', sans-serif; font-size: .66rem; }
.login-cinematic .dev-copyright { font-size: .61rem; }

@media (prefers-reduced-motion: reduce) {
    .cinema-login-inner,
    .cinema-art,
    .cinema-field { transition: none; }
}

@media (max-height: 800px) and (min-width: 701px) {
    .cinema-login-inner { padding-top: 18px; padding-bottom: 18px; }
    .cinema-brand-row { margin-bottom: 11px; }
    .cinema-terra-logo { width: 205px; height: 62px; }
    .cinema-company-badge { width: 116px; height: 62px; }
    .cinema-company-name { font-size: 1rem; }
    .cinema-role { margin-bottom: 11px; padding: 4px 9px; font-size: .76rem; }
    .cinema-login-inner > h1 { margin-bottom: 20px; font-size: 3rem; }
    .cinema-field { height: 60px; }
    .cinema-form { gap: 13px; }
    .cinema-login-btn { height: 60px; }
    .cinema-trust { margin-top: 18px; padding-top: 15px; }
    .login-cinematic .auth-footer-dev { margin-top: 12px; }
}

@media (max-width: 900px) {
    .cinema-art, #flowCanvas, .cinema-seam { display: none; }
    .cinema-stage { overflow-y: auto; background: radial-gradient(circle at 50% 30%, rgba(3, 105, 254, .14), transparent 42%), #020711; }
    .cinema-login-zone { position: relative; right: auto; width: min(100% - 30px, 610px); height: auto; min-height: 100vh; margin: 0 auto; overflow: visible; }
    .cinema-login-inner { padding: 30px 2px; }
}

/* TERRA website interaction parity: official mark, particle mascot and cursor */
.terra-network-symbol { aspect-ratio: 191.5 / 158.31; }

.accounting-brand img {
    display: block;
    width: clamp(132px, 10vw, 164px);
    height: auto;
}

.accounting-brand.has-client-brand {
    min-height: 52px;
    margin-bottom: 14px;
}

.accounting-client-brand {
    width: max-content;
    max-width: min(220px, 55%);
    min-height: 46px;
    display: flex;
    align-items: center;
}

.accounting-client-brand img {
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .18));
}

.terra-hero-glyph,
.terra-mascot-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.terra-hero-glyph {
    z-index: 1;
    overflow: visible;
    filter: drop-shadow(0 0 18px rgba(0, 92, 255, .2));
}

.terra-hero-glyph path {
    fill: #042653;
    stroke: rgba(31, 132, 255, .22);
    stroke-width: .65;
    vector-effect: non-scaling-stroke;
}

.terra-mascot-canvas {
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 7px rgba(0, 126, 255, .72));
}

@media (max-width: 560px) {
    .cinema-login-zone { width: min(100% - 24px, 520px); }
    .cinema-brand-row { justify-content: center; }
    .cinema-terra-logo { width: 196px; height: 64px; }
    .cinema-company-badge { display: none; }
    .cinema-company-name { text-align: center; font-size: 1rem; }
    .cinema-role { display: flex; margin-right: auto; margin-left: auto; }
    .cinema-login-inner > h1 { text-align: center; font-size: 2.65rem; }
    .cinema-field { height: 62px; padding: 0 14px; }
    .cinema-controls { font-size: .78rem; }
    .cinema-trust { flex-wrap: wrap; justify-content: center; }
    .cinema-login-btn { height: 62px; font-size: 1.05rem; }
}

/* Accounting login reference — new TERRA identity */
body.login-cinematic {
    background: #010713;
}

@media (hover: hover) and (pointer: fine) {
    body.login-cinematic,
    body.login-cinematic * {
        cursor: url('../brand/terra-cursor.svg') 20 17, auto !important;
    }
}

body.login-cinematic .cinema-stage {
    background:
        radial-gradient(ellipse at 31% 50%, rgba(0, 105, 255, .12), transparent 43%),
        radial-gradient(ellipse at 72% 45%, rgba(0, 105, 255, .07), transparent 42%),
        #010816;
}

body.login-cinematic .cinema-stage::before {
    background:
        linear-gradient(rgba(37, 105, 193, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 105, 193, .04) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,.82) 72%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,.82) 72%, transparent 100%);
}

body.login-cinematic .cinema-art {
    width: 57vw;
    overflow: visible;
    background: transparent;
    filter: none;
}

body.login-cinematic .cinema-art::before {
    inset: 7% 4% 7% 2%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(0, 103, 255, .15), transparent 48%),
        repeating-radial-gradient(circle at center, rgba(28, 119, 255, .09) 0 1px, transparent 1px 42px);
    filter: blur(.1px);
}

body.login-cinematic .cinema-art::after {
    inset: -3% -18% -3% 0;
    border: 0;
    background:
        radial-gradient(ellipse at 40% 50%, transparent 0 48%, rgba(1, 8, 22, .18) 72%, transparent 100%);
    box-shadow: none;
    pointer-events: none;
}

body.login-cinematic .cinema-seam {
    display: none;
}

.terra-network-symbol {
    position: absolute;
    z-index: 3;
    left: 18.2%;
    top: 23%;
    width: min(30vw, 510px);
    aspect-ratio: 1.02;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 14px rgba(0, 113, 255, .9)) drop-shadow(0 0 46px rgba(0, 90, 255, .35));
}

.terra-network-symbol::before,
.terra-network-symbol::after {
    content: '';
    position: absolute;
    inset: -15%;
    border: 1px solid rgba(42, 136, 255, .14);
    border-radius: 50%;
    box-shadow: inset 0 0 90px rgba(0, 102, 255, .06);
}

.terra-network-symbol::after {
    inset: -3%;
    border-style: dashed;
    opacity: .75;
    animation: terraOrbitSpin 45s linear infinite;
}

.terra-mark {
    --terra-mark-color: #087bff;
    --terra-cutout: #020a18;
    position: relative;
    display: block;
    color: var(--terra-mark-color);
}

.terra-mark i {
    position: absolute;
    display: block;
    background: currentColor;
    box-shadow: 0 0 .22em rgba(0, 128, 255, .95), 0 0 .7em rgba(0, 100, 255, .5);
}

.terra-mark-top {
    left: 4%;
    top: 0;
    width: 92%;
    height: 22%;
    border-radius: .18em .18em 0 0;
}

.terra-mark-left,
.terra-mark-right {
    top: 32%;
    width: 44%;
    height: 66%;
    border-radius: .22em;
}

.terra-mark-left { left: 4%; }
.terra-mark-right { right: 4%; }

.terra-mark-left::after,
.terra-mark-right::after {
    content: '';
    position: absolute;
    top: 39%;
    width: 58%;
    height: 22%;
    border-radius: 999px;
    background: var(--terra-cutout);
}

.terra-mark-left::after { right: -2%; }
.terra-mark-right::after { left: -2%; }

.terra-mark-hero {
    width: 100%;
    height: 100%;
    opacity: .94;
    background:
        radial-gradient(circle, rgba(120, 207, 255, .95) 0 1px, transparent 1.6px) 0 0 / 8px 8px;
    -webkit-mask: linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0);
}

.terra-mark-hero i {
    background:
        radial-gradient(circle, #b7e8ff 0 1px, #178cff 1.2px 2px, transparent 2.3px) 0 0 / 7px 7px,
        linear-gradient(135deg, #0797ff, #005dff);
    border: 1px solid rgba(93, 197, 255, .85);
}

.terra-mark-small {
    width: 42px;
    height: 34px;
    --terra-cutout: #010713;
    filter: drop-shadow(0 0 7px rgba(0, 110, 255, .32));
}

@keyframes terraOrbitSpin { to { transform: rotate(360deg); } }

body.login-cinematic .cinema-art-orbit {
    z-index: 1;
    border-color: rgba(21, 112, 255, .12);
    box-shadow: none;
}

body.login-cinematic .orbit-one { width: 47vw; height: 47vw; left: 1vw; top: 5vh; }
body.login-cinematic .orbit-two { width: 33vw; height: 33vw; left: 8vw; top: 18vh; }

.network-node {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 6px;
    color: #9fb4d1;
    font-size: .68rem;
    font-weight: 600;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(0, 100, 255, .22));
}

.network-node::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 110, 255, .42), transparent);
    transform-origin: center;
}

.node-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(48, 143, 255, .36);
    border-radius: 50%;
    color: #d5e8ff;
    background: radial-gradient(circle, rgba(0, 101, 255, .12), rgba(1, 8, 22, .86));
    box-shadow: 0 0 18px rgba(0, 105, 255, .16), inset 0 0 14px rgba(0, 105, 255, .08);
}

.node-icon svg { width: 24px; height: 24px; stroke-width: 1.25; }
.network-node b { font-weight: 600; white-space: nowrap; }
.node-invoices { left: 8%; top: 14%; }
.node-invoices::after { left: 52px; top: 30px; transform: rotate(12deg); }
.node-entries { left: 31%; top: 8%; }
.node-entries::after { left: 39px; top: 63px; transform: rotate(67deg); }
.node-accounts { right: 8%; top: 24%; }
.node-accounts::after { right: 45px; top: 35px; transform: rotate(-20deg); }
.node-audit { left: 3%; top: 49%; }
.node-audit::after { left: 50px; top: 22px; transform: rotate(-9deg); }
.node-users { left: 6%; bottom: 13%; }
.node-users::after { left: 50px; top: 19px; transform: rotate(-32deg); }
.node-branches { right: 10%; bottom: 8%; }
.node-branches::after { right: 47px; top: 13px; transform: rotate(31deg); }
.node-settlements { right: 4%; top: 53%; }
.node-settlements::after { right: 46px; top: 24px; transform: rotate(4deg); }
.node-scale { left: 43%; bottom: 1.8%; }
.node-scale::after { left: -24px; top: -31px; transform: rotate(90deg); }

body.login-cinematic #flowCanvas { width: 100vw; opacity: .86; }

body.login-cinematic .cinema-login-zone {
    right: clamp(52px, 5vw, 98px);
    width: clamp(370px, 27vw, 440px);
    overflow-x: hidden;
    scrollbar-width: none;
}

body.login-cinematic .cinema-login-zone::-webkit-scrollbar { display: none; }

.login-particles-canvas {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .7;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,.92) 64%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,.92) 64%, transparent 100%);
}

body.login-cinematic .cinema-login-inner {
    z-index: 1;
    padding: 26px 0;
}

body.login-cinematic .cinema-form {
    width: min(100%, 420px);
    margin-inline: auto;
}

.accounting-brand {
    margin-bottom: 24px;
    direction: ltr;
    display: flex;
    justify-content: center;
}

.accounting-brand a {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f3f7ff;
    text-decoration: none;
    margin-inline: auto;
}

.accounting-brand strong {
    color: #f4f7fb;
    font: 500 1.7rem/1 'Segoe UI', Arial, sans-serif;
    letter-spacing: .04em;
}

body.login-cinematic .cinema-login-inner > h1 {
    margin: 0 0 18px;
    color: #f6f8fc;
    font-size: clamp(1.65rem, 2vw, 2rem);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.02em;
    text-align: center;
}

.cinema-login-subtitle {
    max-width: 460px;
    margin: 0 0 24px;
    color: #7f90aa;
    font-size: .78rem;
    line-height: 1.8;
    font-weight: 500;
}

body.login-cinematic .cinema-form { gap: 10px; }

body.login-cinematic .cinema-field {
    height: 44px;
    padding: 0 12px;
    gap: 11px;
    overflow: visible;
    border-color: rgba(64, 125, 212, .32);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(5, 20, 45, .86), rgba(2, 12, 29, .93));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 0 0 rgba(0, 105, 255, 0);
    backdrop-filter: blur(12px);
}

body.login-cinematic .cinema-field::before {
    inset: -1px;
    border-radius: 8px;
}

body.login-cinematic .cinema-field:hover,
body.login-cinematic .cinema-field:focus-within {
    border-color: rgba(0, 132, 255, .9);
    background: linear-gradient(90deg, rgba(4, 24, 55, .96), rgba(2, 14, 34, .98));
    box-shadow: 0 0 9px rgba(0, 112, 255, .36), inset 0 0 16px rgba(0, 95, 255, .06);
}

body.login-cinematic .cinema-field input {
    font-size: .78rem;
    font-weight: 500;
    color: #e8f1ff;
    text-align: center;
}

body.login-cinematic .cinema-field input::placeholder { color: #75869f; opacity: 1; }
body.login-cinematic .cinema-field-icon { width: 19px; height: 19px; color: #9eb2d2; opacity: .82; }
body.login-cinematic .cinema-password-toggle { width: 30px; height: 30px; color: #7f93b1; }

body.login-cinematic input:-webkit-autofill,
body.login-cinematic input:-webkit-autofill:hover,
body.login-cinematic input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e8f1ff !important;
    caret-color: #e8f1ff;
    -webkit-box-shadow: 0 0 0 1000px #041127 inset !important;
    box-shadow: 0 0 0 1000px #041127 inset !important;
    transition: background-color 9999s ease-out 0s;
}

body.login-cinematic .cinema-controls {
    margin-top: 0;
    font-size: .72rem;
}

body.login-cinematic .cinema-controls > a { color: #1586f7; font-weight: 600; }
body.login-cinematic .cinema-remember { color: #aebbd0; font-weight: 500; }
body.login-cinematic .cinema-checkbox { width: 18px; height: 18px; border-radius: 4px; }

body.login-cinematic .cinema-login-btn {
    height: 45px;
    margin-top: 1px;
    border: 1px solid rgba(45, 151, 255, .7);
    border-radius: 8px;
    background:
        radial-gradient(circle at 76% 60%, rgba(65, 183, 255, .34), transparent 24%),
        linear-gradient(90deg, #005fd6, #087aff 48%, #005bc8);
    box-shadow:
        0 0 14px rgba(0, 113, 255, .72),
        0 0 42px rgba(0, 90, 255, .3),
        0 10px 34px rgba(0, 62, 160, .22),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    font-size: .92rem;
    font-weight: 700;
}

body.login-cinematic .cinema-login-btn:hover {
    box-shadow:
        0 0 18px rgba(0, 137, 255, .88),
        0 0 54px rgba(0, 95, 255, .4),
        0 12px 38px rgba(0, 62, 160, .27),
        inset 0 1px 0 rgba(255, 255, 255, .24);
}

body.login-cinematic .cinema-login-btn::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    opacity: .88;
    background-image:
        radial-gradient(circle, rgba(181, 233, 255, .95) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(64, 190, 255, .85) 0 1.2px, transparent 1.9px),
        radial-gradient(circle, rgba(16, 111, 232, .9) 0 .9px, transparent 1.5px);
    background-size: 61px 43px, 97px 59px, 47px 71px;
    background-position: 8px 7px, 31px 19px, 17px 32px;
    animation: terraButtonDotDrift 7s linear infinite alternate;
}

body.login-cinematic .cinema-login-btn #loginBtnText,
body.login-cinematic .cinema-login-btn .cinema-login-arrow {
    position: relative;
    z-index: 2;
}

body.login-cinematic .cinema-login-btn .cinema-login-arrow {
    position: absolute;
}

@keyframes terraButtonDotDrift {
    to { background-position: 38px 21px, 4px 8px, 49px 14px; }
}

.cinema-passkey-btn {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(55, 137, 241, .36);
    border-radius: 8px;
    background: rgba(7, 27, 58, .72);
    color: #cfe3ff;
    font: 700 .78rem/1 inherit;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cinema-passkey-btn svg { width: 19px; height: 19px; color: #55a8ff; }
.cinema-passkey-btn:hover { border-color: rgba(50, 157, 255, .78); background: rgba(10, 48, 98, .8); transform: translateY(-1px); }
.cinema-passkey-btn:disabled { opacity: .58; cursor: wait; transform: none; }
.cinema-passkey-status { display: none; min-height: 16px; color: #9eb5d4; font-size: .68rem; text-align: center; }
.cinema-passkey-status.is-visible,.cinema-passkey-status.is-error,.cinema-passkey-status.is-success { display: block; }
.cinema-passkey-status.is-error { color: #ff9b9b; }
.cinema-passkey-status.is-success { color: #77e2aa; }

body.login-cinematic .cinema-login-arrow { left: 17px; font-size: 1.15rem; }

body.login-cinematic .cinema-trust {
    margin-top: 21px;
    padding-top: 18px;
    border-top-color: rgba(55, 113, 193, .13);
    color: #a9b6ca;
    font-size: .66rem;
    font-weight: 500;
}

body.login-cinematic .cinema-trust svg { width: 15px; height: 15px; }

body.login-cinematic .auth-footer-dev {
    width: clamp(370px, 27vw, 440px);
    position: absolute;
    z-index: 8;
    right: clamp(52px, 5vw, 98px);
    bottom: 26px;
    transform: none;
    margin: 0;
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-areas:
        "brand brand"
        "contact phones"
        "copyright copyright";
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    opacity: .82;
}

body.login-cinematic .auth-footer-dev .dev-brand,
body.login-cinematic .auth-footer-dev .dev-contact-row,
body.login-cinematic .auth-footer-dev .dev-phones {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}

body.login-cinematic .auth-footer-dev .dev-brand {
    grid-area: brand;
    justify-self: center;
    direction: ltr;
}
body.login-cinematic .auth-footer-dev .dev-contact-row {
    grid-area: contact;
    justify-content: center;
    justify-self: center;
}
body.login-cinematic .auth-footer-dev .dev-phones {
    grid-area: phones;
    justify-self: center;
    direction: ltr;
}

body.login-cinematic .auth-footer-dev .dev-copyright {
    grid-area: copyright;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    text-align: center;
    color: rgba(151, 171, 204, .62);
}

body.login-cinematic .footer-version {
    display: inline-flex;
    vertical-align: middle;
    margin-inline: 5px;
    padding: 1px 6px;
    font-size: .53rem;
}

body.login-cinematic .auth-footer-dev.without-brand {
    grid-template-columns: max-content max-content;
    grid-template-areas:
        "contact phones"
        "copyright copyright";
    row-gap: 7px;
}

body.login-cinematic .dev-brand-name {
    color: #f2f6ff;
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
}

@media (max-height: 820px) and (min-width: 901px) {
    body.login-cinematic .accounting-brand { margin-bottom: 16px; }
    body.login-cinematic .cinema-login-subtitle { margin-bottom: 16px; }
    body.login-cinematic .cinema-trust { margin-top: 14px; padding-top: 13px; }
    body.login-cinematic .auth-footer-dev { margin-top: 11px; }
}

@media (max-width: 900px) {
    body.login-cinematic .cinema-art {
        display: block;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100svh;
        overflow: hidden;
        background: transparent;
        pointer-events: none;
    }
    body.login-cinematic .cinema-art::before,
    body.login-cinematic .cinema-art::after,
    body.login-cinematic .cinema-art-orbit,
    body.login-cinematic .network-node {
        display: none;
    }
    body.login-cinematic .terra-network-symbol {
        left: 50%;
        top: 54%;
        width: min(72vw, 320px);
        transform: translate(-50%, -50%);
        opacity: .2;
        filter: drop-shadow(0 0 12px rgba(0, 113, 255, .72)) drop-shadow(0 0 34px rgba(0, 90, 255, .28));
    }
    body.login-cinematic .cinema-login-zone { right: auto; width: min(100% - 30px, 560px); margin-inline: auto; }
    body.login-cinematic .auth-footer-dev {
        width: min(100% - 30px, 560px);
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    body.login-cinematic .accounting-brand a { margin-inline: auto; }
    body.login-cinematic .cinema-login-inner > h1,
    body.login-cinematic .cinema-login-subtitle { text-align: center; margin-right: auto; margin-left: auto; }
}

@media (max-width: 560px) {
    body.login-cinematic .terra-network-symbol {
        top: clamp(14px, 3svh, 28px);
        width: min(46vw, 175px);
        transform: translate(-50%, 0);
        opacity: .42;
        filter: drop-shadow(0 0 14px rgba(0, 113, 255, .82)) drop-shadow(0 0 38px rgba(0, 90, 255, .32));
    }
    body.login-cinematic .auth-footer-dev {
        width: calc(100% - 24px);
        right: auto;
        bottom: 18px;
        grid-template-columns: max-content max-content;
        grid-template-areas: "brand brand" "contact phones" "copyright copyright";
        gap: 5px 8px;
    }
    body.login-cinematic .auth-footer-dev .dev-contact-row,
    body.login-cinematic .auth-footer-dev .dev-phones { justify-content: center; justify-self: center; }
    body.login-cinematic .auth-footer-dev .dev-copyright { white-space: normal; text-align: center; }
    body.login-cinematic .auth-footer-dev.without-brand {
        grid-template-columns: max-content max-content;
        grid-template-areas: "contact phones" "copyright copyright";
    }
}

@media (max-width: 380px) {
    body.login-cinematic .auth-footer-dev {
        grid-template-columns: 1fr;
        grid-template-areas: "brand" "contact" "phones" "copyright";
    }
    body.login-cinematic .auth-footer-dev.without-brand {
        grid-template-areas: "contact" "phones" "copyright";
    }
}

/* Approved calm composition: centered login with a small identity mascot. */
body.login-cinematic .cinema-stage {
    background:
        linear-gradient(rgba(55, 105, 170, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 105, 170, .028) 1px, transparent 1px),
        radial-gradient(circle at 50% 44%, rgba(0, 91, 200, .075), transparent 34%),
        #010713;
    background-size: 68px 68px, 68px 68px, auto, auto;
}

body.login-cinematic .cinema-stage::before {
    opacity: .34;
    -webkit-mask-image: radial-gradient(circle at center, #000 15%, transparent 74%);
    mask-image: radial-gradient(circle at center, #000 15%, transparent 74%);
}

body.login-cinematic .cinema-art {
    display: block;
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

body.login-cinematic .cinema-art::before,
body.login-cinematic .cinema-art::after,
body.login-cinematic .cinema-art-orbit,
body.login-cinematic .network-node,
body.login-cinematic #flowCanvas {
    display: none;
}

body.login-cinematic .terra-network-symbol {
    display: grid;
    left: calc(50% + 315px);
    top: 50%;
    width: clamp(105px, 8vw, 135px);
    transform: translate(-50%, -50%);
    opacity: .42;
    filter: drop-shadow(0 10px 28px rgba(0, 78, 173, .18));
    clip-path: circle(75% at 50% 50%);
    animation: terraMascotCinematicArrival 2.65s cubic-bezier(.22, .78, .18, 1) .18s both;
}

body.login-cinematic .terra-network-symbol::before {
    display: block;
    inset: -13%;
    border-color: rgba(57, 137, 238, .1);
    box-shadow: none;
}

body.login-cinematic .terra-network-symbol::after {
    display: none;
}

body.login-cinematic .terra-hero-glyph {
    filter: none;
}

body.login-cinematic .terra-hero-glyph path {
    fill: rgba(4, 48, 101, .9);
    stroke: rgba(42, 132, 246, .3);
}

body.login-cinematic .terra-mascot-canvas {
    opacity: .48;
    filter: none;
}

body.login-cinematic .cinema-login-zone {
    position: absolute;
    z-index: 5;
    left: 50%;
    right: auto;
    top: 50%;
    width: min(410px, calc(100% - 32px));
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: visible;
    transform: translate(-50%, -50%);
}

body.login-cinematic .cinema-login-zone::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -54px -78px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: conic-gradient(from -90deg, transparent 0 68%, rgba(34, 139, 255, .42) 78%, rgba(117, 202, 255, .72) 83%, transparent 91%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
    animation: terraMascotOrbitTrace 2.35s cubic-bezier(.25, .7, .2, 1) .28s both;
}

@keyframes terraMascotCinematicArrival {
    0% {
        opacity: 0;
        clip-path: circle(0 at 50% 50%);
        transform: translate(-50%, -50%) translate(-315px, -210px) scale(.08) rotate(-24deg);
        filter: blur(14px) drop-shadow(0 0 0 rgba(0, 126, 255, 0));
    }
    19% {
        opacity: .28;
        clip-path: circle(22% at 50% 50%);
        transform: translate(-50%, -50%) translate(-500px, -10px) scale(.42) rotate(-12deg);
        filter: blur(7px) drop-shadow(0 0 20px rgba(0, 126, 255, .18));
    }
    43% {
        opacity: .55;
        clip-path: circle(48% at 50% 50%);
        transform: translate(-50%, -50%) translate(-310px, 170px) scale(.68) rotate(8deg);
        filter: blur(3px) drop-shadow(0 0 28px rgba(0, 126, 255, .3));
    }
    67% {
        opacity: .68;
        clip-path: circle(70% at 50% 50%);
        transform: translate(-50%, -50%) translate(105px, 112px) scale(.88) rotate(13deg);
        filter: blur(1px) drop-shadow(0 0 30px rgba(0, 126, 255, .34));
    }
    84% {
        opacity: .52;
        clip-path: circle(75% at 50% 50%);
        transform: translate(-50%, -50%) translate(24px, -25px) scale(1.08) rotate(-3deg);
        filter: blur(0) drop-shadow(0 0 22px rgba(0, 126, 255, .28));
    }
    100% {
        opacity: .42;
        clip-path: circle(75% at 50% 50%);
        transform: translate(-50%, -50%) translate(0, 0) scale(1) rotate(0);
        filter: drop-shadow(0 10px 28px rgba(0, 78, 173, .18));
    }
}

@keyframes terraMascotOrbitTrace {
    0% { opacity: 0; transform: rotate(-115deg) scale(.76); }
    18% { opacity: .28; }
    62% { opacity: .52; }
    88% { opacity: .16; }
    100% { opacity: 0; transform: rotate(225deg) scale(1.04); }
}

@keyframes terraMascotMobileArrival {
    0% {
        opacity: 0;
        clip-path: circle(0 at 50% 50%);
        transform: translateX(-50%) translateY(-34px) scale(.18) rotate(-10deg);
        filter: blur(10px) drop-shadow(0 0 0 rgba(0, 126, 255, 0));
    }
    62% {
        opacity: .42;
        clip-path: circle(75% at 50% 50%);
        transform: translateX(-50%) translateY(6px) scale(1.08) rotate(3deg);
        filter: blur(0) drop-shadow(0 0 22px rgba(0, 126, 255, .28));
    }
    100% {
        opacity: .32;
        clip-path: circle(75% at 50% 50%);
        transform: translateX(-50%) translateY(0) scale(1) rotate(0);
        filter: none;
    }
}

body.login-cinematic .login-particles-canvas {
    opacity: .16;
}

body.login-cinematic .cinema-login-inner {
    width: 100%;
    padding: 26px 0 76px;
}

body.login-cinematic .accounting-brand {
    margin-bottom: 20px;
}

body.login-cinematic .accounting-brand a {
    margin-inline: auto;
}

body.login-cinematic .accounting-brand img {
    width: clamp(142px, 10vw, 162px);
}

body.login-cinematic .cinema-login-inner > h1 {
    margin-bottom: 20px;
    text-align: center;
}

body.login-cinematic .cinema-form {
    width: 100%;
}

body.login-cinematic .auth-footer-dev {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: min(560px, calc(100% - 28px));
    transform: translateX(-50%);
    opacity: .64;
}

@media (max-width: 900px) {
    body.login-cinematic .cinema-login-zone {
        left: 50%;
        right: auto;
        width: min(410px, calc(100% - 30px));
        transform: translate(-50%, -50%);
    }
    body.login-cinematic .terra-network-symbol {
        left: 50%;
        top: clamp(24px, 6vh, 54px);
        width: clamp(82px, 18vw, 108px);
        transform: translateX(-50%);
        opacity: .32;
        animation: terraMascotMobileArrival 1.45s cubic-bezier(.22, .78, .18, 1) .15s both;
    }
    body.login-cinematic .cinema-login-zone::before { display: none; }
}

@media (max-width: 560px) {
    body.login-cinematic .cinema-login-zone {
        width: calc(100% - 48px);
    }
    body.login-cinematic .terra-network-symbol {
        top: max(18px, env(safe-area-inset-top));
        width: 82px;
        opacity: .28;
    }
    body.login-cinematic .cinema-login-inner {
        padding: 22px 0 88px;
    }
    body.login-cinematic .accounting-brand { margin-bottom: 17px; }
    body.login-cinematic .accounting-brand img { width: 145px; }
    body.login-cinematic .cinema-login-inner > h1 { margin-bottom: 18px; font-size: 2rem; }
    body.login-cinematic .auth-footer-dev { bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    body.login-cinematic .terra-network-symbol,
    body.login-cinematic .cinema-login-zone::before {
        animation: none !important;
    }
}

/* Keep the TERRA mascot cursor while editing login fields. */
@media (hover: hover) and (pointer: fine) {
    html body.login-cinematic .cinema-field,
    html body.login-cinematic .cinema-field:hover,
    html body.login-cinematic .cinema-field:focus-within,
    html body.login-cinematic .cinema-field input,
    html body.login-cinematic .cinema-field input:hover,
    html body.login-cinematic .cinema-field input:focus,
    html body.login-cinematic .cinema-password-toggle,
    html body.login-cinematic .cinema-passkey-btn,
    html body.login-cinematic .cinema-login-btn {
        cursor: url('../brand/terra-cursor.svg') 20 17, default !important;
    }
}

/* Lightweight login composition: preserve the TERRA identity without
   continuous canvas rendering on customer PCs. */
body.login-cinematic .accounting-brand { display: none; }
body.login-cinematic .terra-network-symbol {
    display: block;
    left: 50%;
    top: 50%;
    width: min(680px, calc(100vw - 20px));
    height: min(650px, calc(100vh - 28px));
    aspect-ratio: auto;
    transform: translate(-50%, -50%);
    opacity: 1;
    filter: none;
    clip-path: none;
    animation: none;
}
body.login-cinematic .terra-network-symbol::before,
body.login-cinematic .terra-network-symbol::after,
body.login-cinematic .cinema-login-zone::before { display: none; }
body.login-cinematic .terra-hero-glyph {
    display: block;
    position: absolute;
    top: 28px;
    left: 50%;
    width: min(158px, 40vw);
    height: auto;
    transform: translateX(-50%);
    opacity: .52;
    filter: drop-shadow(0 8px 22px rgba(0, 116, 255, .2));
}
body.login-cinematic .terra-hero-glyph path {
    fill: rgba(4, 48, 101, .94);
    stroke: rgba(42, 132, 246, .48);
}
body.login-cinematic .terra-mascot-canvas,
body.login-cinematic .login-particles-canvas,
body.login-cinematic #flowCanvas {
    display: none !important;
}
body.login-cinematic .cinema-login-inner { padding-top: 128px; }
body.login-cinematic .cinema-login-inner > h1 { margin-bottom: 20px; }

@media (max-width: 900px) {
    body.login-cinematic .cinema-art { display: block; }
    body.login-cinematic .terra-network-symbol {
        left: 50%;
        top: 50%;
        width: min(620px, calc(100vw - 8px));
        height: min(650px, calc(100vh - 12px));
        transform: translate(-50%, -50%);
        opacity: 1;
        animation: none;
    }
}
@media (max-width: 560px) {
    body.login-cinematic .cinema-login-inner { padding-top: 116px; }
    body.login-cinematic .terra-network-symbol {
        top: 50%;
        width: 100vw;
        height: min(640px, calc(100vh - env(safe-area-inset-top) - 12px));
    }
}

/* Restore native mobile pull-to-refresh without moving the fixed composition. */
@media (max-width: 900px) and (pointer: coarse) {
    html {
        overflow-y: auto;
        overscroll-behavior-y: auto;
    }
    body.login-cinematic {
        height: auto;
        min-height: calc(100dvh + 1px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    body.login-cinematic .cinema-field input {
        font-size: 16px;
    }
}

/* Unified login surface — customer identity first, one developer signature. */
body.login-cinematic {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #020817;
}

body.login-cinematic .cinema-stage {
    position: relative;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 34px 18px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle 390px at 50% 43%, rgba(18, 103, 220, .1), rgba(7, 50, 119, .035) 58%, transparent 78%),
        linear-gradient(rgba(70, 126, 202, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 126, 202, .025) 1px, transparent 1px),
        #020817;
    background-size: auto, 72px 72px, 72px 72px, auto;
}

body.login-cinematic .cinema-stage::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .75;
    background: radial-gradient(circle at 50% 44%, transparent 0 26%, rgba(2, 8, 23, .42) 66%, rgba(2, 8, 23, .88) 100%);
    -webkit-mask-image: none;
    mask-image: none;
}

body.login-cinematic .cinema-art,
body.login-cinematic #flowCanvas,
body.login-cinematic .cinema-seam,
body.login-cinematic .login-particles-canvas,
body.login-cinematic .terra-network-symbol { display: none !important; }

body.login-cinematic .cinema-login-zone {
    position: relative;
    z-index: 2;
    inset: auto;
    width: min(100%, 470px);
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: visible;
    transform: none;
}

body.login-cinematic .cinema-login-zone::before { display: none; }

body.login-cinematic .cinema-login-inner {
    width: 100%;
    padding: 30px 30px 26px;
    border: 1px solid rgba(91, 146, 222, .24);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(7, 20, 43, .94), rgba(3, 12, 29, .97));
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .38),
        0 0 46px rgba(18, 102, 221, .1),
        0 0 110px rgba(11, 73, 165, .045),
        inset 0 1px 0 rgba(255, 255, 255, .035);
}

body.login-cinematic .accounting-brand {
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    direction: rtl;
}

body.login-cinematic .accounting-client-brand {
    width: min(190px, 64%);
    height: 82px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.login-cinematic .accounting-client-brand img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

body.login-cinematic .accounting-client-placeholder {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    color: #147df5;
    background: #f8fbff;
    box-shadow: 0 12px 34px rgba(0, 84, 190, .24);
}

body.login-cinematic .accounting-client-placeholder svg { width: 40px; height: 40px; }

body.login-cinematic .accounting-client-name {
    max-width: 100%;
    overflow: hidden;
    color: #e9f1ff;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.login-cinematic .cinema-login-inner > h1 {
    margin: 0 0 4px;
    font-size: clamp(1.65rem, 4vw, 2rem);
    text-align: center;
}

body.login-cinematic .cinema-login-subtitle {
    margin: 0 auto 22px;
    color: #91a2bc;
    font-size: .82rem;
    text-align: center;
}

body.login-cinematic .cinema-form { gap: 11px; }

body.login-cinematic .cinema-field {
    height: 50px;
    border-radius: 10px;
    background: rgba(4, 17, 39, .9);
    backdrop-filter: none;
}

body.login-cinematic .cinema-field input { font-size: .84rem; text-align: right; }
body.login-cinematic .cinema-controls { margin: 1px 0 2px; font-size: .75rem; }

body.login-cinematic .cinema-login-btn {
    height: 51px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 96, 220, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
}

body.login-cinematic .cinema-login-btn::before,
body.login-cinematic .cinema-login-btn::after { display: none; }

body.login-cinematic .cinema-trust {
    margin: 18px 0 0;
    padding-top: 15px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(91, 146, 222, .14);
}

body.login-cinematic .auth-footer-dev {
    position: relative;
    z-index: 2;
    inset: auto;
    width: min(100%, 470px);
    margin: 0;
    transform: none;
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-areas:
        "contact phones"
        "brand copyright";
    align-items: center;
    justify-content: center;
    gap: 7px 8px;
    opacity: .76;
}

body.login-cinematic .auth-footer-dev .dev-brand,
body.login-cinematic .auth-footer-dev .dev-contact-row,
body.login-cinematic .auth-footer-dev .dev-phones,
body.login-cinematic .auth-footer-dev .dev-copyright { width: auto; margin: 0; }

body.login-cinematic .auth-footer-dev .dev-contact-row,
body.login-cinematic .auth-footer-dev .dev-phones {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

body.login-cinematic .auth-footer-dev .dev-contact-row { grid-area: contact; }
body.login-cinematic .auth-footer-dev .dev-phones { grid-area: phones; justify-self: center; direction: ltr; }
body.login-cinematic .auth-footer-dev .dev-copyright { grid-area: copyright; text-align: center; white-space: nowrap; }

body.login-cinematic .auth-footer-dev .dev-contact-link,
body.login-cinematic .auth-footer-dev .dev-phone-link,
body.login-cinematic .auth-footer-dev .dev-contact-sep {
    min-height: 22px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.login-cinematic .auth-footer-dev .dev-contact-link { gap: 5px; }
body.login-cinematic .auth-footer-dev .dev-contact-link svg { flex: 0 0 auto; margin: 0; }

body.login-cinematic .auth-footer-dev .dev-brand {
    grid-area: brand;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 5px;
}

body.login-cinematic .auth-footer-dev .dev-brand-link { padding: 2px 5px; background: transparent; }
body.login-cinematic .auth-footer-dev .dev-brand-logo { max-width: 58px; max-height: 18px; }
body.login-cinematic .auth-footer-dev .dev-powered-by { display: none; }
body.login-cinematic .auth-footer-dev .dev-contact-link,
body.login-cinematic .auth-footer-dev .dev-phone-link,
body.login-cinematic .auth-footer-dev .dev-copyright { font-size: .61rem; }

@media (max-width: 560px) {
    body.login-cinematic .cinema-stage {
        justify-content: flex-start;
        gap: 14px;
        padding: max(18px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
        overflow: visible;
    }

    body.login-cinematic .cinema-login-zone { width: min(100%, 430px); transform: none; }
    body.login-cinematic .cinema-login-inner { padding: 23px 18px 20px; border-radius: 18px; }
    body.login-cinematic .accounting-brand { margin-bottom: 14px; }
    body.login-cinematic .accounting-client-brand { width: min(170px, 62vw); height: 72px; }
    body.login-cinematic .accounting-client-placeholder { width: 68px; height: 68px; border-radius: 16px; }
    body.login-cinematic .cinema-login-inner > h1 { font-size: 1.65rem; }
    body.login-cinematic .cinema-login-subtitle { margin-bottom: 17px; }
    body.login-cinematic .cinema-field,
    body.login-cinematic .cinema-login-btn { height: 50px; }

    body.login-cinematic .auth-footer-dev {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
        grid-template-columns: max-content max-content;
        grid-template-areas: "contact phones" "brand copyright";
        justify-content: center;
        gap: 4px 7px;
    }

    body.login-cinematic .auth-footer-dev .dev-copyright { white-space: normal; text-align: center; }
    body.login-cinematic .auth-footer-dev .dev-contact-row { gap: 7px; }
}

@media (max-width: 360px) {
    body.login-cinematic .cinema-login-inner { padding-inline: 14px; }
    body.login-cinematic .cinema-controls { gap: 10px; font-size: .7rem; }
    body.login-cinematic .auth-footer-dev { gap: 4px 5px; }
    body.login-cinematic .auth-footer-dev .dev-contact-row,
    body.login-cinematic .auth-footer-dev .dev-phones { gap: 4px; }
    body.login-cinematic .auth-footer-dev .dev-contact-link { padding-inline: 2px; }
    body.login-cinematic .auth-footer-dev .dev-brand-logo { max-width: 56px; }
}
