/* ============================================================
   HUGIINE / DECISION ENGINE - HOME
   Compatible CSS version for cPanel editor
   ============================================================ */

/* ============================================================
   RESET / BASE
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;

    font-family: Inter, Arial, Helvetica, sans-serif;

    color: #0a1234;
    background: #ffffff;
}

body {
    min-width: 320px;
}

a {
    color: #6d28f7;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button,
input {
    font-family: Inter, Arial, Helvetica, sans-serif;
}


/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.auth-shell {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: stretch;
}

.hero-panel {
    position: relative;

    width: 44%;
    min-width: 0;

    overflow: hidden;

    color: #ffffff;
    background: #05071d;
}

.login-panel {
    width: 56%;
    min-width: 0;

    background: #ffffff;
}


/* ============================================================
   LEFT HERO PANEL
   ============================================================ */

.hero-panel {
    background-color: #05071d;

    background-image:
        radial-gradient(
            circle at 70% 78%,
            rgba(119, 45, 255, 0.42),
            transparent 27%
        ),
        radial-gradient(
            circle at 44% 88%,
            rgba(95, 52, 255, 0.22),
            transparent 22%
        ),
        linear-gradient(
            180deg,
            #020312 0%,
            #070926 57%,
            #0b0b31 100%
        );
}

.hero-panel:before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-image:
        radial-gradient(
            circle at 12% 17%,
            rgba(255, 255, 255, 0.8) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 68% 12%,
            rgba(122, 76, 255, 0.9) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 83% 28%,
            rgba(255, 255, 255, 0.45) 0 1px,
            transparent 1.5px
        );

    background-size:
        230px 230px,
        180px 180px,
        260px 260px;

    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;

    width: 100%;
    min-width: 0;
    min-height: 100%;

    padding: 42px 46px 0 46px;

    display: flex;
    flex-direction: column;
}


/* ============================================================
   HUGIINE LOGO
   ============================================================ */

.brand {
    display: block;

    width: 100%;

    margin: 0 0 48px 0;
}

.hugiine-logo {
    display: block;

    width: 330px;
    max-width: 82%;
    height: auto;

    margin: 0;
}


/* ============================================================
   HERO COPY
   ============================================================ */

.hero-copy {
    width: 100%;
    max-width: 520px;

    margin-top: 0;
}

.hero-copy h1 {
    margin: 0;

    color: #ffffff;

    font-size: 48px;
    line-height: 1.08;

    letter-spacing: -2px;
}

.hero-copy h1 span {
    color: #8d58ff;
}

.hero-copy p {
    margin: 26px 0 0 0;

    max-width: 500px;

    color: #e5e7f5;

    font-size: 17px;
    line-height: 1.7;
}


/* ============================================================
   FEATURES
   ============================================================ */

.features {
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 20px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;

    flex: 0 0 60px;

    margin-right: 18px;

    border: 1px solid rgba(132, 86, 255, 0.65);
    border-radius: 50%;

    background: rgba(116, 66, 255, 0.13);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #b393ff;

    font-size: 28px;
}

.feature > div:last-child {
    flex: 1;
    min-width: 0;
}

.feature h3 {
    margin: 0 0 7px 0;

    color: #ffffff;

    font-size: 17px;
}

.feature p {
    margin: 0;

    max-width: 380px;

    color: #d2d5e9;

    font-size: 15px;
    line-height: 1.55;
}


/* ============================================================
   HERO IMAGE
   ============================================================ */

.hero-art {
    position: relative;

    width: auto;

    margin-top: 28px;
    margin-left: -46px;
    margin-right: -46px;

    overflow: hidden;

    line-height: 0;
}

.hero-image {
    display: block;

    width: 100%;
    height: auto;

    border: 0;

    object-fit: cover;
    object-position: center bottom;
}


/* ============================================================
   RIGHT LOGIN PANEL
   ============================================================ */

.login-inner {
    width: 88%;
    max-width: 720px;

    margin-left: auto;
    margin-right: auto;

    padding: 42px 0 54px 0;
}


/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.language-switcher {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 46px;
}

.language-switcher a {
    min-width: 92px;
    height: 56px;

    margin-left: 10px;

    border: 1px solid #e5e8f1;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #0a1234;

    font-weight: 700;

    background: #ffffff;
}

.language-switcher a:first-child {
    margin-left: 0;
}

.language-switcher a span {
    margin-left: 10px;
}

.language-switcher a.active {
    border: 2px solid #6d28f7;

    color: #6d28f7;
}


/* ============================================================
   AUTH CARD
   ============================================================ */

.auth-card {
    border: 1px solid #e5e8f1;
    border-radius: 24px;

    padding: 48px;

    background: #ffffff;

    box-shadow: 0 18px 45px rgba(15, 25, 70, 0.06);
}

.auth-card-header h2 {
    margin: 0;

    font-size: 46px;
    line-height: 1.02;

    letter-spacing: -2px;
}

.auth-card-header p {
    margin: 20px 0 34px 0;

    max-width: 480px;

    color: #66708f;

    font-size: 17px;
    line-height: 1.6;
}


/* ============================================================
   TABS
   ============================================================ */

.auth-tabs {
    display: flex;

    width: 100%;

    background: #f8f8fb;

    border-radius: 14px;

    margin-bottom: 34px;

    overflow: hidden;
}

.tab {
    width: 50%;

    border: 0;
    border-bottom: 2px solid transparent;

    background: transparent;

    padding: 18px;

    cursor: pointer;

    color: #3c4565;
}

.tab.active {
    color: #6d28f7;

    border-bottom-color: #6d28f7;

    background: rgba(111, 40, 247, 0.04);
}


/* ============================================================
   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;

    border: 1px solid #cfd4e3;
    border-radius: 13px;

    padding: 0 54px;

    outline: none;

    color: #0a1234;

    background: #ffffff;
}

.field input:focus {
    border-color: #8a5cff;

    box-shadow: 0 0 0 4px rgba(109, 40, 247, 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 {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 4px 0 28px 0;

    font-size: 14px;
}

.remember {
    display: flex !important;
    align-items: center;

    margin: 0 !important;

    font-weight: 500 !important;

    color: #606a87;
}

.remember input {
    margin-right: 9px;
}


/* ============================================================
   PRIMARY BUTTON
   ============================================================ */

.primary-button {
    position: relative;

    width: 100%;
    height: 60px;

    border: 0;
    border-radius: 12px;

    background: #6d28f7;
    background-image: linear-gradient(90deg, #5721df, #7b31ec);

    color: #ffffff;

    font-weight: 800;
    font-size: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.primary-button .arrow {
    position: absolute;

    right: 20px;

    font-size: 28px;
    font-weight: 400;
}


/* ============================================================
   SEPARATOR
   ============================================================ */

.separator {
    position: relative;

    text-align: center;

    margin: 34px 0;

    color: #6b7392;
}

.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;

    background: #ffffff;

    padding: 0 16px;
}


/* ============================================================
   SOCIAL BUTTONS
   ============================================================ */

.social-button {
    width: 100%;
    height: 58px;

    border: 1px solid #e5e8f1;
    border-radius: 12px;

    background: #ffffff;

    margin-top: 12px;

    cursor: pointer;

    color: #0a1234;

    font-size: 16px;
}

.google {
    color: #4285f4;

    font-weight: 900;

    margin-right: 14px;
}

.apple {
    color: #000000;

    margin-right: 14px;
}


/* ============================================================
   SIGNUP CALLOUT
   ============================================================ */

.signup-callout {
    margin-top: 28px;

    border: 1px solid #d8ccff;
    border-radius: 18px;

    background: #fbf9ff;

    padding: 22px 24px;

    display: flex;
    align-items: center;
}

.callout-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    margin-right: 18px;

    border-radius: 50%;

    background: #eee6ff;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6d28f7;

    font-size: 24px;
}

.callout-copy {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;
}

.callout-copy strong {
    margin-bottom: 5px;
}

.callout-copy span {
    color: #65708d;

    font-size: 14px;
}

.signup-callout button {
    margin-left: 18px;

    border: 1px solid #e5e8f1;
    border-radius: 11px;

    background: #ffffff;

    color: #6d28f7;

    padding: 13px 17px;

    font-weight: 700;

    cursor: pointer;
}


/* ============================================================
   TRUST ROW
   ============================================================ */

.trust-row {
    display: flex;
    justify-content: space-between;

    margin-top: 40px;

    color: #6d28f7;
}

.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;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    min-height: 86px;

    border-top: 1px solid #e5e8f1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #69728e;

    font-size: 13px;
}

.site-footer nav {
    display: flex;
    align-items: center;

    margin-top: 8px;
}

.site-footer nav a,
.site-footer nav span {
    margin-left: 6px;
    margin-right: 6px;
}


/* ============================================================
   UTILITIES
   ============================================================ */

.hidden {
    display: none !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 980px) {

    .auth-shell {
        display: block;
    }

    .hero-panel,
    .login-panel {
        width: 100%;
        min-width: 0;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-inner {
        padding-bottom: 0;
    }

    .brand {
        margin-bottom: 38px;
    }

    .hugiine-logo {
        width: 300px;
        max-width: 75%;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-art {
        margin-top: 36px;
    }

    .login-inner {
        width: 92%;
        max-width: 680px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 620px) {

    .hero-inner {
        padding: 28px 22px 0 22px;
    }

    .brand {
        margin-bottom: 32px;
    }

    .hugiine-logo {
        width: 260px;
        max-width: 86%;
    }

    .hero-copy {
        margin-top: 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 {
        display: flex;
        align-items: center;
    }

    .feature-icon {
        width: 48px;
        height: 48px;

        flex: 0 0 48px;

        margin-right: 14px;
    }

    .hero-art {
        margin-left: -22px;
        margin-right: -22px;
        margin-top: 32px;
    }

    .hero-image {
        width: 100%;
        height: auto;

        display: block;
    }

    .login-inner {
        width: 94%;

        padding-top: 24px;
    }

    .language-switcher {
        justify-content: center;

        margin-bottom: 24px;
    }

    .language-switcher a {
        min-width: 82px;

        margin-left: 4px;
        margin-right: 4px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .auth-card-header h2 {
        font-size: 36px;
    }

    .form-row {
        display: block;
    }

    .form-row .remember {
        margin-bottom: 12px !important;
    }

    .signup-callout {
        display: block;
    }

    .callout-icon {
        margin-bottom: 14px;
    }

    .signup-callout button {
        width: 100%;

        margin-left: 0;
        margin-top: 14px;
    }

    .trust-row {
        display: block;
    }

    .trust-row div {
        width: 100%;

        margin-bottom: 18px;
    }

    .site-footer {
        padding: 20px;

        text-align: center;
    }

    .site-footer nav {
        display: block;

        text-align: center;
    }

    .site-footer nav a,
    .site-footer nav span {
        display: inline-block;

        margin-top: 5px;
        margin-bottom: 5px;
    }
}