/* TOKENS */

:root {
    --hg-navy-950: #0B1220;
    --hg-navy-900: #101B30;
    --hg-navy-800: #16233C;
    --hg-navy-700: #1E2E4C;
    --hg-gold: #D4A44C;
    --hg-gold-soft: rgba(212, 164, 76, 0.16);
    --hg-teal: #4FD1C5;
    --hg-teal-soft: rgba(79, 209, 197, 0.16);
    --hg-ink: #111827;
    --hg-ink-soft: #4b5563;
    --hg-line: #e5e7eb;
    --hg-text-onDark: #F3F5F9;
    --hg-text-onDark-muted: rgba(243, 245, 249, 0.66);
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
}
/* CUSTOM LOGIN PAGE */

.custom-login-page {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #ffffff;
}

/*  CONTAINER */

.login-container {
    width: 100%;
    height: 100vh; 
    display: grid;
    grid-template-columns: minmax(0, 700px) 1fr;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}


/*  LEFT BRANDING  */

.login-branding {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            120% 140% at 0% 0%,
            var(--hg-navy-800) 0%,
            var(--hg-navy-950) 60%
        );
    color: var(--hg-text-onDark);
    padding: 40px 56px;
    box-sizing: border-box;
    overflow: hidden;
}
/* faint blueprint-grid texture, nods to a systems/ERP backbone */
.brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 80% at 15% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(80% 80% at 15% 20%, #000 0%, transparent 70%);
    pointer-events: none;
}
.brand-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    transform: translateY(-10px);
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(155deg, var(--hg-gold) 0%, #a97c2c 100%);
    color: var(--hg-navy-950);
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.brand-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hg-gold);
}

.login-branding h1 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.brand-description {
    margin: 0 0 12px;
    max-width: 460px;
    font-size: 20px;
    line-height: 1.7;
    color: var(--hg-text-onDark-muted);
	text-align: center;
    font-weight: bold;
}


/*  SOLUTIONS PANEL (MODULES + INDUSTRIES) */

.solutions-panel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 28px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.solutions-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.solutions-heading {
    margin: 0 0 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ---- modules list ---- */

.modules-grid {
    display: flex;
    flex-direction: column;
    row-gap: 11px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hg-text-onDark);
    font-size: 13px;
    line-height: 1.4;
}

.module-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hg-gold-soft);
    color: var(--hg-gold);
    font-size: 10px;
    font-weight: 700;
}


/* ---- industries list ---- */

.industries-grid {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hg-text-onDark);
    font-size: 13px;
    line-height: 1.4;
}

.industry-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: var(--hg-teal);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}


/* RIGHT SIDE */

.login-form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    box-sizing: border-box;
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
}


/* LOGO (form side) */

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    margin: 0 auto 25px;
    overflow: hidden;
    border-radius: 0;
}

.login-logo img {
    display: block;
    width: 180px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto;
}

.login-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 14px;
    background: var(--hg-navy-950);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
}
/* HEADINGS */

.login-form-wrapper h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--hg-ink);
    text-align: center;
	white-space: nowrap;
}

.login-subtitle {
    margin: 10px 0 32px;
    color: var(--hg-ink-soft);
    font-size: 14.5px;
    text-align: center;
}

/* FORM */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--hg-line);
    border-radius: 10px;
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: var(--hg-navy-800);
    box-shadow:
        0 0 0 3px rgba(16, 27, 48, 0.08);
}

/* PASSWORD */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 60px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--hg-ink-soft);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* OPTIONS */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4b5563;
    cursor: pointer;
}

.remember-me input {
    cursor: pointer;
    accent-color: var(--hg-navy-800);
}

.login-options a {
    color: var(--hg-navy-800);
    text-decoration: none;
    font-weight: 600;
}

.login-options a:hover {
    text-decoration: underline;
}

/* ERROR */

.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
}

/* BUTTON */

.login-button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(155deg, var(--hg-navy-800) 0%, var(--hg-navy-950) 100%);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.15s,
        opacity 0.15s;
}

.login-button:hover {
    opacity: 0.92;
}

.login-button:active {
    transform: scale(0.99);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-button:focus-visible,
.password-toggle:focus-visible,
.form-group input:focus-visible {
    outline: 2px solid var(--hg-gold);
    outline-offset: 2px;
}

/* SPINNER */

.login-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* FOOTER */

.login-footer {
    margin-top: 32px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

.ai-solutions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* was: 1fr 1fr */
    gap: 14px;
}


.ai-solution-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--hg-text-onDark);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.ai-solution-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(212, 164, 76, 0.3);
    transform: translateY(-1px);
}


.ai-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--hg-gold-soft);
    color: var(--hg-gold);
    font-size: 15px;
}


.ai-solution-item strong {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--hg-text-onDark);
    white-space: nowrap;
}

.ai-solution-item small {
    display: block;
    font-size: 10px;
    line-height: 1.4;
    color: var(--hg-text-onDark-muted);
}
.ai-solution-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: block;
    padding: 3px;
    box-sizing: border-box;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
}
.contact-us {
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;

    font-size: 13px;
    color: var(--hg-text-onDark-muted);

    margin-bottom: 2px;
}

.contact-row > span:first-child {
    text-align: left;
}

.contact-sep {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
}

.contact-row > span:last-child {
    text-align: left;
}
.contact-row a {
    color: var(--hg-text-onDark-muted);
    text-decoration: none;
}

.contact-row a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

    .login-container {
        grid-template-columns: 52% 48%;
    }

    .solutions-panel {
        column-gap: 18px;
    }

}

@media (max-width: 900px) {

    .custom-login-page {
        padding: 0;
    }

    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-branding {
        padding: 48px 32px;
    }

    .brand-content {
        max-width: 100%;
    }

    .login-branding h1 {
        font-size: 30px;
    }

    .solutions-panel {
        grid-template-columns: 1fr 1fr;
    }

    .login-form-container {
        padding: 44px 28px;
    }
	.ai-solutions-grid {
        grid-template-columns: repeat(3, 1fr);   /* keep 3 columns, just smaller cards */
    }

}

@media (max-width: 560px) {

    .solutions-panel {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .solutions-divider {
        width: 100%;
        height: 1px;
    }
    .ai-solutions-grid {
        grid-template-columns: 1fr;   /* stack on very small screens */
    }
    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .contact-sep {
        display: none;
    }

} 