/* ============================================================
   HUGIINE / DECISION ENGINE - HOME
   Clean / consolidated version
   ============================================================ */


/* ============================================================
   1. RESET / BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    max-width: 100%;
    min-height: 100%;

    /* Fallback for older Safari / embedded WebKit, then modern clipping. */
    overflow-x: hidden;
    overflow-x: clip;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: #0a1234;
    background: #ffffff;
}

html {
    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
}

a {
    color: #1769ff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

img,
video {
    height: auto;
}

button,
input,
select,
textarea {
    font:
        inherit;
}

.hidden {
    display: none !important;
}


/* ============================================================
   2. MAIN LAYOUT
   ============================================================ */

.auth-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: grid;
    grid-template-columns:
        minmax(0, 55%)
        minmax(0, 45%);

    align-items: stretch;

    background: #ffffff;
}


/* ============================================================
   3. LEFT HERO PANEL
   ============================================================ */

.hero-panel {
    position: relative;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    align-self: stretch;

    margin-bottom: 54px;

    overflow: hidden;

    color: #07163f;
    background: #ffffff;
}

.hero-panel::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    background: transparent;

    pointer-events: none;
}

.hero-panel::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    width: 100%;
    height: 100%;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.30) 0%,
            rgba(255, 255, 255, 0.12) 18%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.12) 82%,
            rgba(255, 255, 255, 0.30) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.18) 100%
        ),
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;

    background-size:
        100% 100%,
        100% 100%,
        cover;

    background-position:
        center,
        center,
        center;

    background-color: #ffffff;

    background-blend-mode:
        normal,
        normal,
        multiply;

    pointer-events: none;
}

.hero-inner {
    position: relative;

    z-index: 2;

    width: 100%;
    min-width: 0;

    padding: 20px 42px 54px;

    display: flex;
    flex-direction: column;
}


/* ============================================================
   4. HUGIINE LOGO
   ============================================================ */

.brand {
    width: 100%;

    margin: -30px 0 48px 0;
    padding: 0;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.hugiine-logo {
    display: block;

    width: 300px;
    max-width: 100%;
    height: auto;

    margin: 0;
}


/* ============================================================
   5. HERO COPY
   ============================================================ */

.hero-copy {
    width: 100%;
    max-width: none;

    margin-top: 0;

    position: relative;
    z-index: 10;
}

.hero-copy h1 {
    /*
    | O título pode avançar visualmente sobre a coluna direita.
    | Não altera a largura real da coluna esquerda.
    */
    width: 100%;
    max-width: 1500px;

    margin: 0;

    color: #07163f;

    font-size: 48px;
    font-weight: 500;
    line-height: 1.08;

    letter-spacing: -2px;
}

.hero-copy h1 span {
    color: #1769ff;
}

.hero-copy p {
    /*
    | A descrição continua limitada à coluna esquerda.
    */
    width: 100%;
    max-width: 500px;

    margin: 26px 0 0 0;

    color: #536584;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}


/* ============================================================
   6. HERO FEATURES
   ============================================================ */

.features {
    width: 100%;
    max-width: 100%;

    margin-top: 40px;
}

.feature {
    width: 100%;

    padding: 20px 0;

    display: flex;
    align-items: center;

    border-bottom:
        1px solid
        rgba(23, 105, 255, 0.10);
}

.feature-icon {
    width: 60px;
    height: 60px;

    flex: 0 0 60px;

    margin-right: 18px;

    border:
        1px solid
        rgba(23, 105, 255, 0.42);

    border-radius: 50%;

    background:
        rgba(23, 105, 255, 0.055);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #1769ff;

    font-size: 28px;
}

.feature > div:last-child {
    flex: 1;
    min-width: 0;
}

.feature h3 {
    margin: 0 0 7px 0;

    color: #07163f;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.feature p {
    max-width: 520px;

    margin: 0;

    color: #536584;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}
/* ============================================================
   7. RIGHT PANEL
   ============================================================ */

.login-panel {
    position: relative;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;
}

.login-inner {
    width: 90%;
    max-width: 680px;

    margin-left: auto;
    margin-right: auto;

    padding: 0 0 54px;

    flex: 1;
}


/* ============================================================
   8. LANGUAGE SWITCHER
   ============================================================ */

.language-switcher {
    width: 100%;

    margin: 0 0 46px 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.language-switcher form {
    display: block;

    margin: 0 0 0 10px;
    padding: 0;
}

.language-switcher form:first-child {
    margin-left: 0;
}

.language-switcher button {
    box-sizing: border-box;

    min-width: 92px;
    height: 56px;

    margin: 0;
    padding: 0 16px;

    border: 1px solid #e5e8f1;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: #0a1234;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    text-align: center;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.language-switcher button > span {
    display: block;

    margin: 0;
    padding: 0;

    line-height: 1;

    text-align: center;
}

.language-switcher button:hover {
    border-color: #1769ff;

    color: #1769ff;
}

.language-switcher button.active {
    border: 2px solid #1769ff;

    background: #ffffff;

    color: #1769ff;
}

.desktop-language-switcher {
    position: absolute;

    top: 24px;
    right: 28px;

    z-index: 30;

    width: auto;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.desktop-language-switcher form {
    margin-left: 8px;
}

.desktop-language-switcher form:first-child {
    margin-left: 0;
}

.desktop-language-switcher button {
    min-width: 68px;
    height: 42px;

    padding: 0 12px;

    border-radius: 11px;

    font-size: 12px;
}

.mobile-language-switcher {
    display: none;
}


/* ============================================================
   9. AUTH CARD
   ============================================================ */

.auth-card {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 48px;

    border: 1px solid #e5e8f1;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 18px 45px
        rgba(15, 25, 70, 0.06);
}

.auth-card-header h2 {
    margin: 0;

    font-size: 46px;
    font-weight: 500;
    line-height: 1.02;

    letter-spacing: -2px;
}

.auth-card-header p {
    max-width: 480px;

    margin: 20px 0 34px 0;

    color: #66708f;

    font-size: 17px;
    line-height: 1.6;
}

.login-intro {
    display: none !important;
}


/* ============================================================
   10. WHY HUGIINE LINK
   ============================================================ */

.auth-why-hugiine {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin: 0 0 5px 0;

    color: #1769ff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.auth-why-hugiine:hover {
    color: #0d54d8;
    gap: 9px;
}

.auth-why-hugiine span:last-child {
    font-size: 17px;
    line-height: 1;
}


/* ============================================================
   11. AUTH TABS
   ============================================================ */

.auth-tabs {
    width: 100%;

    margin-bottom: 34px;

    display: flex;

    overflow: hidden;

    border-radius: 14px;

    background: #f8f8fb;
}

.tab {
    width: 50%;

    padding: 18px;

    border: 0;
    border-bottom: 2px solid transparent;

    background: transparent;

    color: #3c4565;

    cursor: pointer;
}

.tab.active {
    border-bottom-color: #1769ff;

    background:
        rgba(23, 105, 255, 0.04);

    color: #1769ff;
}


/* ============================================================
   12. FORMS
   ============================================================ */

.auth-form label {
    display: block;

    margin: 0 0 10px 0;

    font-weight: 700;
}

.field {
    position: relative;

    margin-bottom: 22px;
}

.field input {
    width: 100%;
    height: 62px;

    padding: 0 54px;

    border: 1px solid #cfd4e3;
    border-radius: 13px;

    outline: none;

    color: #0a1234;
    background: #ffffff;
}

.field input:focus {
    border-color: #1769ff;

    box-shadow:
        0 0 0 4px
        rgba(23, 105, 255, 0.08);
}

.field-icon,
.password-toggle {
    position: absolute;

    top: 50%;

    margin-top: -10px;

    color: #6f789a;
}

.field-icon {
    left: 18px;
}

.password-toggle {
    right: 15px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.form-row {
    margin: 4px 0 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 14px;
}

.remember {
    margin: 0 !important;

    display: flex !important;
    align-items: center;

    color: #606a87;

    font-weight: 500 !important;
}

.remember input {
    margin-right: 9px;
}


/* ============================================================
   13. PRIMARY BUTTON
   ============================================================ */

.primary-button {
    position: relative;

    width: 100%;
    height: 60px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #145cff,
            #2176ff
        );

    color: #ffffff;

    font-size: 19px;
    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.primary-button .arrow {
    position: absolute;

    right: 20px;

    font-size: 28px;
    font-weight: 400;
}


/* ============================================================
   14. CODE ACTIONS
   ============================================================ */

.code-actions {
    width: 520px;
    max-width: 100%;

    margin: 26px auto 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-actions form {
    width: 250px;

    margin: 0;
    padding: 0;
}

.code-action-btn {
    width: 250px;
    height: 46px;

    margin: 0;
    padding: 0 18px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.code-action-form .code-action-btn {
    width: 100%;
}

.code-action-icon {
    display: inline-block;

    margin-right: 8px;

    font-size: 17px;
    line-height: 1;
}

.resend-btn {
    border: 1px solid #cfe0ff;

    background: #f4f8ff;

    color: #1769ff;
}

.resend-btn:hover {
    border-color: #1769ff;

    background: #eaf2ff;

    color: #1769ff;
}

.change-email-btn {
    border: 1px solid #dfe3ee;

    background: #ffffff;

    color: #525d7c;
}

.change-email-btn:hover {
    border-color: #b9cdf7;

    background: #f8fbff;

    color: #1769ff;
}


/* ============================================================
   15. SEPARATOR / SOCIAL
   ============================================================ */

.separator {
    position: relative;

    margin: 34px 0;

    color: #6b7392;

    text-align: center;
}

.separator::before,
.separator::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 42%;
    height: 1px;

    background: #e5e8f1;
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.separator span {
    position: relative;

    z-index: 1;

    padding: 0 16px;

    background: #ffffff;
}

.social-button {
    width: 100%;
    height: 58px;

    margin-top: 12px;

    border: 1px solid #e5e8f1;
    border-radius: 12px;

    background: #ffffff;

    color: #0a1234;

    font-size: 16px;

    cursor: pointer;
}

.google {
    margin-right: 14px;

    color: #4285f4;

    font-weight: 900;
}

.apple {
    margin-right: 14px;

    color: #000000;
}


/* ============================================================
   16. OPTIONAL CALLOUTS
   Currently disabled
   ============================================================ */

.signup-callout,
.home-usecases-learning {
    display: none !important;
}


/* ============================================================
   17. TRUST ROW
   ============================================================ */

.trust-row {
    margin-top: 40px;

    display: flex;
    justify-content: space-between;

    color: #1769ff;
}

.trust-row div {
    width: 31%;

    display: flex;
    align-items: flex-start;
}

.trust-row span {
    margin-left: 11px;

    color: #535d7d;

    font-size: 13px;
    line-height: 1.5;
}


/* ============================================================
   18. SITE FOOTER
   ============================================================ */

.site-footer {
    width: 100%;
    max-width: 100%;

    min-height: 70px;

    margin: 0;
    padding: 0;

    border-top: 1px solid #e5e8f1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #69728e;

    font-size: 13px;
    line-height: 1.5;

    text-align: center;
}

.site-footer-company {
    margin-top: 2px;

    font-size: 10px;
    line-height: 1.35;
}

.site-footer-company span,
.site-footer-company a {
    display: inline-block;

    margin-left: 2px;
    margin-right: 2px;
}

.site-footer-company a,
.site-footer nav a {
    color: #1769e8;

    transition: color 0.15s ease;
}

.site-footer-company a:hover,
.site-footer nav a:hover {
    color: #1769e8;
}

.site-footer .site-footer-company .site-footer-address {
    font-size: 9px;
}

.site-footer nav {
    margin-top: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer nav a,
.site-footer nav span {
    margin-left: 6px;
    margin-right: 6px;
}

.site-footer nav span {
    color: #b5bfce;
}


/* ============================================================
   19. WHY HUGIINE PANEL
   ============================================================ */

.why-hugiine-page {
    width: 100%;
}

.home-why-panel {
    position: relative;

    width: 100%;

    height: 620px;
    min-height: 420px;
    max-height: calc(100vh - 260px);
    max-height: calc(100dvh - 260px);

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.home-why-panel-header {
    position: absolute;

    top: 8px;
    right: 22px;

    z-index: 20;
}

.home-why-close {
    width: 34px;
    height: 34px;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 50%;

    outline: none !important;

    background: transparent !important;

    box-shadow: none !important;

    color: #168eea !important;

    font-size: 28px;
    font-weight: 300;
    line-height: 34px;

    text-align: center;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.home-why-close:hover,
.home-why-close:focus,
.home-why-close:active,
.home-why-close:focus-visible {
    border: 0 !important;
    outline: none !important;

    background: transparent !important;

    box-shadow: none !important;

    color: #168eea !important;
}

.home-why-scroll {
    width: 100%;

    flex: 1 1 auto;
    min-height: 0;

    padding-right: 18px;

    overflow-y: auto;
    overflow-x: hidden;

    color: #0a1234;

    font-size: 12px;
    line-height: 1.5;

    scrollbar-width: thin;
    scrollbar-color:
        #168eea
        #ffffff;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.home-why-scroll::-webkit-scrollbar {
    width: 5px;
}

.home-why-scroll::-webkit-scrollbar-track {
    background: #ffffff;

    border: 0;
    border-radius: 999px;
}

.home-why-scroll::-webkit-scrollbar-thumb {
    min-height: 30px;

    border: 0;
    border-radius: 999px;

    background: #168eea;
}

.home-why-scroll::-webkit-scrollbar-thumb:hover {
    background: #0878ce;
}

.home-why-scroll::-webkit-scrollbar-button {
    display: none;

    width: 0;
    height: 0;
}


/* ============================================================
   20. WHY HUGIINE TYPOGRAPHY / SECTIONS
   ============================================================ */

.home-why-scroll .why-hugiine-kicker {
    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.8px;
}

.home-why-scroll .why-hugiine-hero {
    padding-right: 44px;
}

.home-why-scroll .why-hugiine-hero h2 {
    margin: 0 0 10px;

    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
}

.home-why-scroll .why-hugiine-lead {
    margin: 0;

    font-size: 12px;
    line-height: 1.55;
}

.home-why-scroll .why-hugiine-section {
    padding: 20px 0;
}

.home-why-scroll .why-hugiine-section-number {
    margin-bottom: 5px;

    font-size: 10px;
    line-height: 1.2;
}

.home-why-scroll .why-hugiine-section h2 {
    margin: 0 0 9px;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.home-why-scroll .why-hugiine-section > p {
    margin: 0 0 8px;

    font-size: 12px;
    line-height: 1.55;
}

.home-why-scroll .why-hugiine-highlight,
.home-why-scroll .why-hugiine-quote,
.home-why-scroll .why-hugiine-core-message {
    margin-top: 12px;
    padding: 11px 13px;

    font-size: 12px;
    line-height: 1.5;
}

.home-why-scroll .why-hugiine-flow-item,
.home-why-scroll .why-hugiine-benefit,
.home-why-scroll .why-hugiine-components > div {
    font-size: 11px;
    line-height: 1.45;
}

.home-why-scroll .why-hugiine-comparison-row > div {
    padding: 9px 10px;

    font-size: 11px;
    line-height: 1.4;
}

.home-why-scroll .why-hugiine-model span {
    padding: 6px 8px;

    font-size: 11px;
}

.home-why-scroll .why-hugiine-final {
    padding-top: 20px;
}

.home-why-scroll .why-hugiine-final h2 {
    margin-bottom: 9px;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.home-why-scroll .why-hugiine-final p {
    font-size: 12px;
    line-height: 1.55;
}

.home-why-scroll .why-hugiine-final-statement {
    margin-top: 14px;
    padding: 13px;

    font-size: 12px;
    line-height: 1.5;
}

.why-hugiine-hero {
    padding: 0 0 34px;

    border-bottom: 1px solid #e8ebf3;
}

.why-hugiine-kicker,
.why-hugiine-section-number,
.why-hugiine-flow-label,
.why-hugiine-benefit-mark,
.why-hugiine-model strong {
    color: #1769ff;
}

.why-hugiine-kicker {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.why-hugiine-hero h2 {
    max-width: 850px;

    margin: 0 0 14px;

    color: #0a1234;

    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
}

.why-hugiine-lead {
    max-width: 900px;

    margin: 0;

    color: #66708f;

    font-size: 16px;
    line-height: 1.7;
}

.why-hugiine-section {
    position: relative;

    padding: 34px 0;

    border-bottom: 1px solid #e8ebf3;
}

.why-hugiine-section-number {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.why-hugiine-section h2 {
    margin: 0 0 16px;

    color: #0a1234;

    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.why-hugiine-section > p {
    max-width: 900px;

    margin: 0 0 14px;

    color: #5f6987;

    font-size: 15px;
    line-height: 1.7;
}

.why-hugiine-highlight,
.why-hugiine-quote,
.why-hugiine-core-message {
    margin-top: 22px;
    padding: 18px 20px;

    border-left: 4px solid #1769ff;

    border-radius:
        0
        12px
        12px
        0;

    background: #f4f8ff;

    color: #222b4e;

    font-size: 16px;
    line-height: 1.6;
}

.why-hugiine-flow {
    margin-top: 24px;
}

.why-hugiine-flow-item {
    padding: 18px 20px;

    border: 1px solid #e7e9f2;
    border-radius: 12px;

    background: #fbfbfd;
}

.why-hugiine-flow-label {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.why-hugiine-flow-item strong {
    color: #0a1234;
}

.why-hugiine-flow-item p {
    margin: 6px 0 0;

    color: #5f6987;

    line-height: 1.6;
}

.why-hugiine-flow-arrow {
    padding: 5px 0;

    color: #1769ff;

    text-align: center;

    font-weight: 800;
}

.why-hugiine-flow-final {
    background: #f4f8ff;
}

.why-hugiine-benefits {
    margin-top: 22px;

    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px 24px;
}

.why-hugiine-benefit {
    padding: 14px 16px;

    display: flex;
    align-items: flex-start;

    border: 1px solid #e7e9f2;
    border-radius: 12px;

    background: #fbfbfd;

    color: #4f5977;

    line-height: 1.5;
}

.why-hugiine-benefit-mark {
    margin-right: 10px;

    font-weight: 800;
}


/* ============================================================
   21. WHY HUGIINE COMPARISON
   ============================================================ */

.why-hugiine-comparison {
    width: 100%;
    max-width: 100%;

    margin-top: 22px;

    overflow-x: auto;
    overflow-y: hidden;

    border: 1px solid #e7e9f2;
    border-radius: 12px;

    background: #ffffff;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    scrollbar-width: thin;
    scrollbar-color:
        #1769ff
        #f3f7ff;
}

.why-hugiine-comparison::-webkit-scrollbar {
    height: 7px;
}

.why-hugiine-comparison::-webkit-scrollbar-track {
    background: #f3f7ff;

    border-radius: 999px;
}

.why-hugiine-comparison::-webkit-scrollbar-thumb {
    background: #1769ff;

    border-radius: 999px;
}

.why-hugiine-comparison-row {
    width: 810px;
    min-width: 810px;

    display: grid;
    grid-template-columns:
        190px
        260px
        360px;

    border-bottom: 1px solid #e7e9f2;
}

.why-hugiine-comparison-row:last-child {
    border-bottom: 0;
}

.why-hugiine-comparison-row > div {
    min-width: 0;

    padding: 14px 16px;

    color: #5f6987;

    line-height: 1.5;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.why-hugiine-comparison-row > div + div {
    border-left: 1px solid #e7e9f2;
}

.why-hugiine-comparison-header {
    background: #f4f8ff;

    font-weight: 700;
}

.why-hugiine-comparison-header > div {
    color: #0a1234;
}

.why-hugiine-model {
    margin-top: 20px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 9px;
}

.why-hugiine-model span {
    padding: 9px 12px;

    border: 1px solid #e7e9f2;
    border-radius: 9px;

    background: #fbfbfd;

    color: #222b4e;

    font-weight: 600;
}


/* ============================================================
   22. HOME USE CASES
   ============================================================ */

.home-usecases {
    width: 100%;

    padding: 20px 0 18px;

    display: block;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfaff 100%
        );
}


/* ============================================================
   HEADING / TRACK WIDTH
   ============================================================ */

.home-usecases-heading,
.home-usecases-track {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}


/* ============================================================
   HEADING
   ============================================================ */

.home-usecases-heading {
    margin-top: 0;
    margin-bottom: 20px;
}

.home-usecases-heading h2 {
    margin: 0;

    color: #0a1234;

    font-size: 28px;
    font-weight: 500;
    line-height: 1.12;

    letter-spacing: -0.8px;
}

.home-usecases-heading h2 span {
    color: #1769ff;

    font-weight: 500;
}

.home-usecases-heading p {
    margin: 8px 0 0;

    color: #66708f;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}


/* ============================================================
   TRACK
   ============================================================ */

.home-usecases-track {
    padding: 2px 0 12px;

    display: flex;

    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.home-usecases-track::-webkit-scrollbar {
    display: none;
}


/* ============================================================
   CARD
   ============================================================ */

.home-usecase-card {
    position: relative;

    flex:
        0 0
        calc((100% - 14px) / 2);

    width:
        calc((100% - 14px) / 2);

    height: 276px;
    min-height: 276px;
    max-height: 276px;

    padding: 18px 18px 52px;

    overflow: hidden;

    border: 1px solid #e4e6ef;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 10px 30px
        rgba(
            25,
            24,
            70,
            0.07
        );

    scroll-snap-align: start;
}


/* ============================================================
   ICON
   ============================================================ */

.home-usecase-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(
            23,
            105,
            255,
            0.08
        );

    color: #1769ff;

    font-size: 21px;
    font-weight: 600;
}


/* ============================================================
   LABEL
   ============================================================ */

.home-usecase-label {
    display: block;

    margin-bottom: 8px;

    color: #1769ff;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0.35px;
}


/* ============================================================
   CARD TITLE
   ============================================================ */

.home-usecase-card h3 {
    margin: 0 0 10px;

    color: #0a1234;

    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;

    letter-spacing: -0.3px;
}


/* ============================================================
   CARD TEXT
   ============================================================ */

.home-usecase-card p {
    margin: 0;
    padding-bottom: 8px;

    color: #4f5977;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}


/* ============================================================
   ARROW
   ============================================================ */

.home-usecase-arrow {
    position: absolute;

    right: 16px;
    bottom: 16px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #1769ff;
    border-radius: 50%;

    color: #1769ff;

    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.home-usecase-arrow:hover,
.home-usecase-arrow:focus-visible {
    transform:
        translateX(2px);

    background:
        #1769ff;

    color:
        #ffffff;

    outline:
        none;
}


/* ============================================================
   DOTS
   ============================================================ */

.home-usecases-dots {
    margin: 4px 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.home-usecases-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #d7d9e4;
}

.home-usecases-dots span.active {
    background:
        #1769ff;
}



/* ============================================================
   22A. DESKTOP BALANCE — 2 CARDS VISÍVEIS
   ============================================================ */

@media (min-width: 981px) {

    .hero-panel .home-usecases-track {
        width: 100%;
        max-width: none;
    }

    .hero-panel .home-usecase-card {
        flex:
            0 0
            calc((100% - 14px) / 2);

        width:
            calc((100% - 14px) / 2);

        min-width:
            calc((100% - 14px) / 2);

        max-width:
            calc((100% - 14px) / 2);
    }

    .login-panel .login-inner {
        width: 90%;
        max-width: 680px;
    }
    
    .login-panel .login-inner {
    width: 90%;
    max-width: 680px;

    transform: translateY(-106px);
}
}


/* ============================================================
   23. TABLET
   ============================================================ */

@media (max-width: 980px) {

    .auth-shell {
        display: block;

        min-height: auto;
    }

    .hero-panel,
    .login-panel {
        width: 100%;
        min-width: 0;

        min-height: auto;
        height: auto;
    }

    .hero-panel {
        margin-bottom: 0;
    }

    .hero-inner {
        padding: 34px 32px 48px;
    }

    .brand {
        margin: 0 0 38px 0;
    }

    .hugiine-logo {
        width: 380px;
        max-width: 90%;

        margin: 0;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .login-inner {
        width: 92%;
        max-width: 680px;

        padding-top: 24px;
    }

    .desktop-language-switcher {
        display: none;
    }

    .mobile-language-switcher {
        width: 100%;

        margin: -16px 0 24px 0;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 8px;
    }

    .mobile-language-switcher form {
        width: 52px;
        height: 36px;

        margin: 0;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-language-switcher button {
        box-sizing: border-box;

        width: 52px;
        min-width: 52px;
        height: 36px;

        margin: 0;
        padding: 0;

        border:
            1px solid
            rgba(23, 105, 255, 0.22);

        border-radius: 9px;

        display: flex;
        align-items: center;
        justify-content: center;

        background:
            rgba(255, 255, 255, 0.78);

        color: #07163f;

        font-size: 12px;
        font-weight: 700;
        line-height: 1;

        cursor: pointer;

        appearance: none;
        -webkit-appearance: none;
    }

    .mobile-language-switcher button > span {
        width: 100%;
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-language-switcher button:hover {
        border-color: #1769ff;

        color: #1769ff;
    }

    .mobile-language-switcher button.active {
        border: 1px solid #1769ff;

        background:
            rgba(23, 105, 255, 0.07);

        color: #1769ff;
    }

    .home-usecases {
        padding: 34px 0 18px;
    }

    .home-usecases-heading {
        width: calc(100% - 44px);
        max-width: 680px;

        margin: 0 auto 20px;
    }

    .home-usecases-track {
        width: 100%;
        max-width: none;

        margin: 0;

        padding:
            2px
            22px
            12px;

        gap: 14px;

        -webkit-overflow-scrolling: touch;
    }

    .home-usecase-card {
        flex:
            0 0
            min(78vw, 310px);

        width: auto;
    }
}


/* ============================================================
   24. MOBILE
   ============================================================ */

@media (max-width: 620px) {

    .hero-inner {
        padding: 28px 22px 40px;
    }

    .brand {
        margin: 0 0 32px 0;

        justify-content: center;
    }

    .hugiine-logo {
        width: 320px;
        max-width: 92%;

        margin: 0;
    }

    .hero-copy h1 {
        font-size: 38px;
        line-height: 1.08;

        letter-spacing: -1px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .features {
        margin-top: 32px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;

        flex: 0 0 48px;

        margin-right: 14px;
    }

    .login-inner {
        width: 94%;

        padding-top: 24px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .auth-card-header h2 {
        font-size: 36px;
    }

    .form-row {
        display: block;
    }

    .form-row .remember {
        margin-bottom: 12px !important;
    }

    .code-actions {
        width: 100%;

        display: block;
    }

    .code-actions form {
        width: 100%;

        margin-bottom: 10px;
    }

    .code-action-btn {
        width: 100%;
    }

    .trust-row {
        display: block;
    }

    .trust-row div {
        width: 100%;

        margin-bottom: 18px;
    }

    .home-usecases {
        padding: 30px 0 12px;
    }

    .home-usecases-heading {
        width: calc(100% - 40px);

        margin-bottom: 18px;
    }

    .home-usecases-heading h2 {
        font-size: 25px;
    }

    .home-usecases-heading p {
        font-size: 14px;
    }

    .home-usecases-track {
        gap: 12px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .home-usecase-card {
        flex-basis: 82vw;

        max-width: 300px;

        height: 290px;
        min-height: 290px;
        max-height: 290px;
    }

    .site-footer {
        min-height: auto;

        margin: 34px 0 0;
        padding: 20px 0;

        text-align: center;
    }

    .site-footer-company {
        margin-top: 4px;

        font-size: 10px;
        line-height: 1.5;
    }

    .site-footer .site-footer-company .site-footer-address {
        font-size: 9px;
    }

    .site-footer nav {
        display: block;

        margin-top: 8px;

        text-align: center;
    }

    .site-footer nav a,
    .site-footer nav span {
        display: inline-block;

        margin-top: 5px;
        margin-bottom: 5px;
    }

    .home-why-panel {
        height: 70vh;
        height: 70dvh;

        min-height: 420px;

        max-height: 70vh;
        max-height: 70dvh;
    }

    .home-why-scroll {
        padding-right: 8px;
    }

    .why-hugiine-card {
        max-height: none;

        padding: 26px 20px;

        overflow: hidden;

        border-radius: 16px;
    }

    .why-hugiine-hero h2 {
        font-size: 25px;
    }

    .why-hugiine-section h2 {
        font-size: 21px;
    }

    .why-hugiine-benefits,
    .why-hugiine-components {
        grid-template-columns: 1fr;
    }

    .why-hugiine-final h2 {
        font-size: 23px;
    }

    .why-hugiine-comparison-row {
        width: 770px;
        min-width: 770px;

        grid-template-columns:
            180px
            250px
            340px;
    }

    .why-hugiine-comparison-row > div {
        padding: 12px 14px;

        font-size: 12px;
        line-height: 1.5;
    }
}


/* ============================================================
   25. SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .hugiine-logo {
        width: 290px;
        max-width: 94%;
    }

    .hero-copy h1 {
        font-size: 34px;
    }
}

/* ============================================================
   26. DESKTOP — FULL-WIDTH HEADLINE + STRUCTURAL LOGIN ALIGNMENT
   ============================================================ */

@media (min-width: 981px) {

    /*
    |--------------------------------------------------------------------------
    | FULL-WIDTH HEADLINE
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide.home-mood-hero h1 {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        text-align: center !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LEFT DESCRIPTION
    |--------------------------------------------------------------------------
    |
    | The description now lives in .hero-panel, not in the full-width
    | headline row. That means it shares grid-row 3 with the login panel.
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel
    .hero-inner {
        padding-top: 0 !important;
    }

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel
    .home-mood-description {
        width: 100% !important;
        max-width: 690px !important;

        margin: 0 0 24px !important;

        color: #60758d !important;

        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.55 !important;

        text-align: left !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN CARD — SAME START LINE AS LEFT DESCRIPTION
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel {
        padding-top: 0 !important;
    }

    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    .login-inner {
        margin-top: 0 !important;
        transform: none !important;
    }

    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    .auth-card {
        margin-top: 0 !important;
        transform: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | UNIFORM WHITE BACKGROUND
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only),
    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-top,
    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide,
    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel,
    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel {
        background-color: #ffffff !important;
    }

}

/* ============================================================
   27. MOOD HOME — ACTIVITY VISUAL / MORE LIFE
   ============================================================
   Uses a real activity image instead of the old landscape visual.
   Required asset:
   /public_html/assets/images/mood_activity_hero.webp
   ============================================================ */

:root {
    --home-spectrum:
        linear-gradient(
            90deg,
            #37a9f6 0%,
            #42d39a 24%,
            #f1d54a 48%,
            #ff9c45 72%,
            #ef6488 100%
        );
}


/* ------------------------------------------------------------
   PAGE BACKGROUND
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only) {
    background:
        radial-gradient(
            circle at 10% 16%,
            rgba(55, 169, 246, 0.07),
            transparent 26%
        ),
        radial-gradient(
            circle at 44% 72%,
            rgba(66, 211, 154, 0.045),
            transparent 24%
        ),
        #ffffff !important;
}


/* ------------------------------------------------------------
   REMOVE THE OLD DECISION-ENGINE IMAGE FROM THE PUBLIC HOME
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only)
.hero-panel::after {
    background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.16)
        ) !important;

    background-color: transparent !important;
}


html body
.auth-shell:not(.android-app-auth-only)
.home-hero-wide {
    background-image:
        radial-gradient(
            circle at 73% 10%,
            rgba(55, 169, 246, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 31% 76%,
            rgba(239, 100, 136, 0.035),
            transparent 22%
        ) !important;

    background-color: #ffffff !important;
}


/* ------------------------------------------------------------
   HEADLINE — MORE PRESENCE, STILL SOBER
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only)
.home-mood-hero {
    position: relative;

    overflow: hidden;
}


html body
.auth-shell:not(.android-app-auth-only)
.home-mood-hero::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 4px;

    width: 190px;
    height: 4px;

    border-radius: 999px;

    background: var(--home-spectrum);

    opacity: 0.88;

    transform: translateX(-50%);

    pointer-events: none;
}


html body
.auth-shell:not(.android-app-auth-only)
.home-mood-hero h1 {
    color: #07163f !important;
}


html body
.auth-shell:not(.android-app-auth-only)
.home-mood-hero h1 span {
    color: #1769ff !important;
}


/* ------------------------------------------------------------
   DESCRIPTION + ACTIVITY GRID
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only)
.hero-panel
.hero-inner {
    padding-right: 34px !important;
}


.home-mood-content-grid {
    width: 100%;

    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(220px, 0.92fr);

    gap: 24px;

    align-items: stretch;
}


.home-mood-feature-column {
    min-width: 0;
}


.home-mood-feature-column
.mood-home-features {
    width: 100%;
}


/* ------------------------------------------------------------
   ACTIVITY IMAGE
   ------------------------------------------------------------ */

.home-activity-visual {
    position: relative;
    isolation: isolate;

    min-width: 0;
    min-height: 365px;

    overflow: hidden;

    border:
        1px solid
        rgba(30, 105, 199, 0.12);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #eaf5ff 0%,
            #f7fbff 58%,
            #eef8f5 100%
        );

    box-shadow:
        0 18px 44px
        rgba(
            17,
            46,
            82,
            0.09
        );
}


.home-activity-image {
    position: absolute;
    z-index: 1;

    inset: 0;

    background-image:
        linear-gradient(
            180deg,
            rgba(7, 22, 63, 0.01) 0%,
            rgba(7, 22, 63, 0.04) 56%,
            rgba(7, 22, 63, 0.22) 100%
        ),
        url('/assets/images/mood_activity_hero.webp?v=1');

    background-repeat:
        no-repeat,
        no-repeat;

    background-size:
        100% 100%,
        cover;

    background-position:
        center,
        center;

    transition:
        transform
        0.35s
        ease;
}


.home-activity-visual:hover
.home-activity-image {
    transform:
        scale(1.025);
}


/*
|--------------------------------------------------------------------------
| HUGiiNE SPECTRUM
|--------------------------------------------------------------------------
| The same visual idea as the coloured link between the two "ii".
| It appears as a discreet living line over the activity image.
|--------------------------------------------------------------------------
*/

.home-activity-spectrum {
    position: absolute;
    z-index: 3;

    left: 9%;
    right: 9%;
    bottom: 22px;

    height: 7px;

    border-radius:
        50%
        50%
        50%
        50%;

    background: var(--home-spectrum);

    box-shadow:
        0 6px 20px
        rgba(
            55,
            169,
            246,
            0.18
        );

    transform:
        rotate(-2deg)
        skewX(-9deg);

    opacity: 0.90;
}


.home-activity-spectrum::before,
.home-activity-spectrum::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 18%;
    height: 14px;

    border-radius: 50%;

    transform:
        translateY(-50%);

    background: inherit;

    filter: blur(0.2px);
}


.home-activity-spectrum::before {
    left: 17%;
}


.home-activity-spectrum::after {
    right: 18%;
}


/* ------------------------------------------------------------
   FEATURE ITEMS — MORE LIFE
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only)
.mood-home-features
.feature {
    position: relative;

    padding:
        17px
        0 !important;
}


html body
.auth-shell:not(.android-app-auth-only)
.mood-home-features
.feature-icon {
    border-color:
        rgba(30, 105, 199, 0.14) !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f3f8ff
        ) !important;

    box-shadow:
        0 8px 22px
        rgba(
            18,
            51,
            88,
            0.055
        );
}


html body
.auth-shell:not(.android-app-auth-only)
.mood-home-features
.feature:nth-child(1)
.feature-icon {
    color: #37a9f6 !important;

    box-shadow:
        0 8px 22px rgba(55, 169, 246, 0.10);
}


html body
.auth-shell:not(.android-app-auth-only)
.mood-home-features
.feature:nth-child(2)
.feature-icon {
    color: #42bfa3 !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f0fbf8
        ) !important;

    box-shadow:
        0 8px 22px rgba(66, 191, 163, 0.10);
}


html body
.auth-shell:not(.android-app-auth-only)
.mood-home-features
.feature:nth-child(3)
.feature-icon {
    color: #9a74ea !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f3ff
        ) !important;

    box-shadow:
        0 8px 22px rgba(154, 116, 234, 0.10);
}


html body
.auth-shell:not(.android-app-auth-only)
.mood-home-features
.feature::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 68px;
    height: 1px;

    background: var(--home-spectrum);

    opacity: 0.28;
}


/* ------------------------------------------------------------
   TRUST ROW
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only)
.hero-panel
.trust-row {
    margin-top: 24px !important;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(30, 105, 199, 0.08);
}


/* ------------------------------------------------------------
   AUTH CARD — MORE DEPTH + HUGiiNE SPECTRUM DETAIL
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only)
.auth-card {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    border-color:
        rgba(30, 105, 199, 0.12) !important;

    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.99),
            rgba(249, 252, 255, 0.97)
        ) !important;

    box-shadow:
        0 22px 54px
        rgba(
            18,
            46,
            81,
            0.085
        ) !important;
}


html body
.auth-shell:not(.android-app-auth-only)
.auth-card::before {
    content: "";

    position: absolute;
    z-index: 3;

    top: 0;
    left: 36px;
    right: 36px;

    height: 3px;

    border-radius:
        0
        0
        999px
        999px;

    background: var(--home-spectrum);

    opacity: 0.86;

    pointer-events: none;
}


html body
.auth-shell:not(.android-app-auth-only)
.auth-tabs {
    border:
        1px solid
        rgba(30, 105, 199, 0.06);

    background:
        linear-gradient(
            90deg,
            #f3f7ff,
            #f8f8fb
        );
}


html body
.auth-shell:not(.android-app-auth-only)
.primary-button {
    box-shadow:
        0 10px 24px
        rgba(
            23,
            105,
            255,
            0.18
        );
}


/* ------------------------------------------------------------
   LANGUAGE BUTTONS
   ------------------------------------------------------------ */

html body
.auth-shell:not(.android-app-auth-only)
.desktop-language-switcher
button {
    border-color:
        rgba(30, 105, 199, 0.12);

    background:
        rgba(255, 255, 255, 0.90);

    box-shadow:
        0 6px 18px
        rgba(
            18,
            46,
            81,
            0.035
        );
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 1180px) and (min-width: 981px) {

    .home-mood-content-grid {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(190px, 0.85fr);

        gap: 18px;
    }


    .home-activity-visual {
        min-height: 340px;
    }
}


/* ------------------------------------------------------------
   TABLET / MOBILE — ACTIVITY IMAGE BELOW THE FEATURES
   ------------------------------------------------------------ */

@media (max-width: 980px) {

    .home-mood-content-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }


    .home-activity-visual {
        width: min(620px, 100%);
        min-height: 360px;

        margin:
            0
            auto;
    }
}


@media (max-width: 620px) {

    .home-activity-visual {
        min-height: 290px;

        border-radius: 22px;
    }


    .home-activity-spectrum {
        left: 12%;
        right: 12%;
        bottom: 18px;

        height: 6px;
    }
}


/* ------------------------------------------------------------
   ANDROID APP
   ------------------------------------------------------------
   Do not alter the existing Android auth-only layout.
   ------------------------------------------------------------ */

html body
.auth-shell.android-app-auth-only
.home-activity-visual {
    display: none !important;
}

/* ============================================================
   28. HOME — TRUE TWO-COLUMN SPLIT WITH ACTIVITY BACKGROUND
   ============================================================
   Desktop / laptop:
   LEFT  = HUGiiNE brand + headline + copy + benefits over activity image
   RIGHT = language selector + login card on a clean white surface

   Required image:
   /public_html/assets/images/mood_activity_hero.webp
   ============================================================ */

@media (min-width: 981px) {

    /*
    |--------------------------------------------------------------------------
    | MAIN 2-COLUMN GRID
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only) {
        position: relative !important;
        isolation: isolate;

        display: grid !important;

        grid-template-columns:
            minmax(0, 55%)
            minmax(0, 45%) !important;

        grid-template-rows:
            auto
            auto
            1fr !important;

        min-height: 100vh;
        min-height: 100dvh;

        background: #ffffff !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LEFT BACKGROUND IMAGE
    |--------------------------------------------------------------------------
    |
    | One single background spans the whole left column.
    | Content remains readable through a soft white veil.
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)::before {
        content: "";

        position: absolute;
        z-index: 0;

        top: 0;
        bottom: 0;
        left: 0;

        width: 55%;

        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.94) 0%,
                rgba(255, 255, 255, 0.86) 38%,
                rgba(255, 255, 255, 0.60) 72%,
                rgba(255, 255, 255, 0.24) 100%
            ),
            linear-gradient(
                180deg,
                rgba(246, 250, 255, 0.66) 0%,
                rgba(246, 250, 255, 0.34) 56%,
                rgba(246, 250, 255, 0.50) 100%
            ),
            url('/assets/images/mood_activity_hero.webp?v=2');

        background-repeat:
            no-repeat,
            no-repeat,
            no-repeat;

        background-size:
            100% 100%,
            100% 100%,
            cover;

        background-position:
            center,
            center,
            center;

        pointer-events: none;
    }


    /*
    |--------------------------------------------------------------------------
    | HUGiiNE SPECTRUM DETAIL
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)::after {
        content: "";

        position: absolute;
        z-index: 1;

        left: 6%;
        bottom: 34px;

        width: 36%;
        height: 7px;

        border-radius: 999px;

        background:
            linear-gradient(
                90deg,
                #37a9f6 0%,
                #42d39a 24%,
                #f1d54a 48%,
                #ff9c45 72%,
                #ef6488 100%
            );

        opacity: 0.84;

        transform:
            rotate(-1.5deg)
            skewX(-10deg);

        box-shadow:
            0 8px 24px rgba(55, 169, 246, 0.16);

        pointer-events: none;
    }


    /*
    |--------------------------------------------------------------------------
    | LEFT COLUMN — LOGO
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-top {
        grid-column: 1 !important;
        grid-row: 1 !important;

        position: relative;
        z-index: 2;

        padding:
            22px
            42px
            0 !important;

        background: transparent !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-top
    .brand {
        margin:
            -8px
            0
            34px !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-top
    .hugiine-logo {
        width: 235px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LEFT COLUMN — HEADLINE
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide.home-mood-hero {
        grid-column: 1 !important;
        grid-row: 2 !important;

        position: relative;
        z-index: 2;

        width: 100% !important;

        padding:
            0
            42px
            18px !important;

        background: transparent !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide.home-mood-hero::after {
        left: 42px !important;
        bottom: 0 !important;

        width: 112px !important;
        height: 4px !important;

        transform: none !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide.home-mood-hero h1 {
        width: 100% !important;
        max-width: 720px !important;

        margin: 0 !important;

        color: #07163f !important;

        font-size:
            clamp(
                44px,
                4.5vw,
                72px
            ) !important;

        font-weight: 500 !important;
        line-height: 0.98 !important;
        letter-spacing: -0.045em !important;

        text-align: left !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide.home-mood-hero h1 span {
        color: #1769ff !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LEFT COLUMN — DESCRIPTION + FEATURES
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel {
        grid-column: 1 !important;
        grid-row: 3 !important;

        position: relative;
        z-index: 2;

        margin: 0 !important;

        overflow: visible !important;

        background: transparent !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel::before,
    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel::after {
        display: none !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel
    .hero-inner {
        padding:
            14px
            42px
            62px !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel
    .home-mood-description {
        width: 100% !important;
        max-width: 520px !important;

        margin:
            0
            0
            28px !important;

        color: #536a82 !important;

        font-size: 15px !important;
        line-height: 1.55 !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .mood-home-features {
        width: 100%;
        max-width: 560px;

        margin-top: 0 !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .mood-home-features
    .feature {
        padding:
            16px
            0 !important;

        border-bottom:
            1px solid
            rgba(23, 105, 255, 0.10);
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .mood-home-features
    .feature-icon {
        width: 48px !important;
        height: 48px !important;

        flex:
            0
            0
            48px !important;

        margin-right: 15px !important;

        border-radius: 50%;

        background:
            rgba(255, 255, 255, 0.78) !important;

        backdrop-filter:
            blur(7px);

        -webkit-backdrop-filter:
            blur(7px);

        box-shadow:
            0 8px 22px rgba(18, 51, 88, 0.07);
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .mood-home-features
    .feature h3 {
        color: #0a1834 !important;

        font-size: 15px !important;
        font-weight: 600 !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .mood-home-features
    .feature p {
        max-width: 430px !important;

        color: #52667e !important;

        font-size: 12px !important;
        line-height: 1.48 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LEFT COLUMN — TRUST
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel
    .trust-row {
        width: 100% !important;
        max-width: 560px !important;

        position: static !important;
        left: auto !important;

        margin:
            24px
            0
            0 !important;

        padding-top: 14px;

        transform: none !important;

        gap: 24px !important;

        border-top:
            1px solid
            rgba(23, 105, 255, 0.08);
    }


    /*
    |--------------------------------------------------------------------------
    | RIGHT COLUMN — LOGIN PANEL
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel {
        grid-column: 2 !important;
        grid-row:
            1
            /
            4 !important;

        position: relative !important;
        z-index: 3;

        min-height: 100vh;
        min-height: 100dvh;

        padding:
            106px
            28px
            44px !important;

        display: flex;
        align-items: flex-start;
        justify-content: center;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #fbfdff 100%
            ) !important;

        border-left:
            1px solid
            rgba(23, 105, 255, 0.08);
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    .login-inner {
        width: min(88%, 680px) !important;

        max-width: 680px !important;

        margin:
            0
            auto !important;

        padding: 0 !important;

        flex: 0 0 auto;

        transform: none !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    .auth-card {
        width: 100% !important;

        margin: 0 !important;

        padding: 44px 46px !important;

        border:
            1px solid
            rgba(23, 105, 255, 0.11) !important;

        border-radius: 26px !important;

        background:
            rgba(255, 255, 255, 0.96) !important;

        box-shadow:
            0 22px 60px
            rgba(
                18,
                46,
                81,
                0.085
            ) !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LANGUAGE
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    > .desktop-language-switcher {
        top: 26px !important;
        right: 30px !important;
    }

}


/* ============================================================
   TABLET / MOBILE
   ============================================================
   Keep the existing vertical mobile flow and remove the desktop
   background-image split.
   ============================================================ */

@media (max-width: 980px) {

    html body
    .auth-shell:not(.android-app-auth-only)::before,
    html body
    .auth-shell:not(.android-app-auth-only)::after {
        display: none !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-top,
    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide,
    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel {
        background:
            #ffffff !important;
    }
}


/* ============================================================
   29. HUGiiNE MOOD — FULL CITY BACKGROUND
   ============================================================
   Image:
   /assets/images/hugiine_mood_city.webp

   The source image was composed so activity/people remain on the LEFT
   and the calmer, clean area remains on the RIGHT behind the login.
   ============================================================ */

@media (min-width: 981px) {

    html body
    .auth-shell:not(.android-app-auth-only) {
        position: relative !important;
        isolation: isolate;

        background: #ffffff !important;
    }


    /*
    |--------------------------------------------------------------------------
    | ONE BACKGROUND ACROSS THE WHOLE HOME
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)::before {
        content: "";

        position: absolute !important;
        z-index: 0 !important;

        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.52) 0%,
                rgba(255, 255, 255, 0.38) 25%,
                rgba(255, 255, 255, 0.20) 46%,
                rgba(255, 255, 255, 0.04) 58%,
                rgba(255, 255, 255, 0.03) 100%
            ),
            url('/assets/images/hugiine_mood_city.webp?v=1') !important;

        background-repeat:
            no-repeat,
            no-repeat !important;

        background-size:
            100% 100%,
            cover !important;

        background-position:
            center,
            center top !important;

        pointer-events: none;
    }


    /*
    |--------------------------------------------------------------------------
    | THE WAVE IS ALREADY INSIDE THE IMAGE
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)::after {
        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | BOTH COLUMNS BECOME TRANSPARENT
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-top,

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide,

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel,

    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel {
        position: relative;

        z-index: 2;

        background:
            transparent !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel::before,

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel::after {
        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | RIGHT COLUMN — KEEP THE BACKGROUND VISIBLE
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel {
        border-left:
            1px solid
            rgba(255, 255, 255, 0.42) !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN CARD
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .auth-card {
        background:
            rgba(
                255,
                255,
                255,
                0.93
            ) !important;

        border:
            1px solid
            rgba(
                23,
                105,
                255,
                0.11
            ) !important;

        box-shadow:
            0
            22px
            60px
            rgba(
                18,
                46,
                81,
                0.10
            ) !important;

        backdrop-filter:
            blur(8px);

        -webkit-backdrop-filter:
            blur(8px);
    }


    /*
    |--------------------------------------------------------------------------
    | TEXT LEGIBILITY OVER THE IMAGE
    |--------------------------------------------------------------------------
    */

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-mood-description {
        color:
            #425b73 !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .mood-home-features
    .feature h3 {
        color:
            #07163f !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .mood-home-features
    .feature p {
        color:
            #425b73 !important;
    }
}


/* ============================================================
   TABLET / MOBILE — LIGHTER IMAGE TREATMENT
   ============================================================ */

@media (max-width: 980px) {

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-top,

    html body
    .auth-shell:not(.android-app-auth-only)
    .home-hero-wide,

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel {
        background:
            linear-gradient(
                rgba(255, 255, 255, 0.80),
                rgba(255, 255, 255, 0.88)
            ),
            url('/assets/images/hugiine_mood_city.webp?v=1') !important;

        background-repeat:
            no-repeat,
            no-repeat !important;

        background-size:
            100% 100%,
            cover !important;

        background-position:
            center,
            35% center !important;
    }
}


/* ============================================================
   30. DESKTOP — DEFINITIVE LOGIN ALIGNMENT
   ============================================================
   Fixes the old Section 28 rule that forced:
   grid-row: 1 / 4 !important;
   padding-top: 106px !important;
   ============================================================ */

@media (min-width: 981px) {

    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel
    .hero-inner {
        padding-top: 0 !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .hero-panel
    .home-mood-description {
        margin-top: 0 !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel {
        grid-column: 2 !important;
        grid-row: 3 !important;

        position: static !important;

        min-height: 0 !important;

        padding:
            0
            28px
            34px !important;

        align-self: start !important;

        background: transparent !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    > .login-inner {
        width: min(88%, 680px) !important;
        max-width: 680px !important;

        margin:
            0
            auto !important;

        padding: 0 !important;

        transform: none !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    .auth-card {
        margin-top: 0 !important;
        transform: none !important;
    }


    html body
    .auth-shell:not(.android-app-auth-only)
    .login-panel
    > .desktop-language-switcher {
        position: absolute !important;

        top: 20px !important;
        right: 28px !important;
        left: auto !important;

        z-index: 100 !important;
    }
}

/* ============================================================
   HOME — CROSS-BROWSER STABILITY
   ============================================================
   Shared safeguards for Chrome, Edge, Firefox and Safari.
   No device-specific visual overrides are introduced here.
   ============================================================ */

.auth-shell,
.hero-panel,
.hero-inner,
.hero-copy,
.login-panel,
.login-inner,
.auth-card,
.home-usecases,
.home-usecases-track,
.home-usecase-card,
.home-why-panel,
.home-why-scroll {
    min-width: 0;
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    .home-usecases-track,
    .home-why-scroll {
        scroll-behavior: auto;
    }
}

/* ============================================================
   IOS / IPADOS FORM FOCUS STABILITY
   ============================================================
   Prevent Safari from zooming the page when a text control receives focus.
   Other browsers keep their existing typography.
   ============================================================ */

@supports (-webkit-touch-callout: none) {

    @media (max-width: 980px) {

        input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
        select,
        textarea {
            font-size: 16px;
        }
    }
}
