/* Hagleys CRM Login - clean version */

html,
body {
    width: 100%;
    overflow-x: hidden;
}

.fi-simple-layout {
    min-height: 100vh !important;
    overflow-x: hidden !important;
    padding: 16px !important;
    background:
        radial-gradient(circle at top left, rgba(18,170,169,.22), transparent 35%),
        linear-gradient(135deg,#0f172a 0%,#123f4a 60%,#12aaa9 150%) !important;
}

.fi-simple-main-ctn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.fi-simple-main {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 28px !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 30px 80px rgba(15,23,42,.30) !important;
}

.fi-simple-main .fi-logo img {
    max-height: 160px !important;
    width: auto !important;
    margin: 0 auto 10px !important;
}

.fi-simple-header-heading {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #36475B !important;
}

.fi-simple-header::after {
    content: "Welcome to SmartCo CRM. Please sign in to continue.";
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.fi-simple-main .fi-fo-component-ctn {
    gap: 14px !important;
}

.fi-input-wrp {
    border-radius: 12px !important;
}

.fi-input,
.fi-simple-main input {
    min-height: 44px !important;
    font-size: 14px !important;
}

.fi-simple-main .fi-ac {
    margin-top: 16px !important;
}

.fi-simple-main .fi-ac-btn-action[type=submit],
.fi-simple-main .fi-btn-color-primary,
.fi-simple-main .fi-btn.fi-color-primary {
    width: 100% !important;
    min-height: 48px !important;
    background: #12AAA9 !important;
    border-color: #12AAA9 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 24px rgba(18,170,169,.22) !important;
}

.fi-simple-main .fi-ac-btn-action[type=submit]:hover,
.fi-simple-main .fi-btn-color-primary:hover,
.fi-simple-main .fi-btn.fi-color-primary:hover {
    background: #0D8F8E !important;
    border-color: #0D8F8E !important;
}

.fi-simple-main form::after {
    content: "Protected by Google reCAPTCHA.";
    white-space: pre-line;
    display: block;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7fcfc;
    border: 1px solid #d8f1f1;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.fi-simple-main::after {
    content: "SmartCo CRM\A Smarter CRM. Built Around Your Business.";
    white-space: pre-line;
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .fi-simple-layout {
        padding: 12px !important;
    }

    .fi-simple-main {
        width: calc(100% - 8px) !important;
        max-width: 100% !important;
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .fi-simple-header-heading {
        font-size: 21px !important;
    }

    .fi-simple-main .fi-logo img {
        max-height: 160px !important;
    }
}

.fi-simple-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(18,170,169,.18), transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 30%);
}

.fi-simple-main {
    position: relative !important;
    overflow: hidden !important;
}

.fi-simple-main .fi-logo img {
    filter: drop-shadow(0 8px 14px rgba(15,23,42,.12));
}

.fi-simple-main .fi-btn {
    transition: transform .15s ease, box-shadow .15s ease;
}

.fi-simple-main .fi-btn:hover {
    transform: translateY(-1px);
}
/* SmartCo login polish */
.smartco-login-logo {
    width: 290px !important;
    max-width: 100% !important;
}

.smartco-login-heading {
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

.smartco-login-subheading {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 28px !important;
}

@media (max-width: 640px) {
    .smartco-login-logo {
        width: 245px !important;
    }

    .smartco-login-heading {
        font-size: 22px !important;
    }
}

/* SmartCo login colour polish */
.fi-simple-layout {
    background:
        radial-gradient(circle at 15% 10%, rgba(18, 170, 169, .22), transparent 30%),
        radial-gradient(circle at 85% 85%, rgba(18, 170, 169, .14), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #163a46 60%, #12aaa9 150%) !important;
}

.smartco-login-panel {
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(160deg, #0f172a 0%, #12aaa9 155%) !important;
}

.smartco-login-form-side .fi-ac .fi-btn {
    background: #12aaa9 !important;
    border-color: #12aaa9 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(18,170,169,.24) !important;
}

.smartco-login-form-side .fi-ac .fi-btn:hover {
    background: #0e9493 !important;
    border-color: #0e9493 !important;
    filter: none !important;
}

/* SmartCo login heading only */
.fi-simple-layout .smartco-login-heading {
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #36475B !important;
    line-height: 1.2 !important;
}

/* SmartCo login final background + logo sizing */
.fi-simple-layout {
    background:
        radial-gradient(circle at 18% 15%, rgba(31, 189, 255, .30), transparent 34%),
        linear-gradient(
            135deg,
            #004e8c 0%,
            #00639b 52%,
            #1fbdff 115%
        ) !important;
}

/* Approx. 20% larger login logo */
.fi-simple-layout .fi-logo img {
    max-height: 192px !important;
    width: auto !important;
}

.fi-simple-layout .smartco-login-logo {
    width: 348px !important;
    max-width: 100% !important;
    height: auto !important;
}

/* SmartCo login final colour balance */
.fi-simple-layout {
    background:
        radial-gradient(circle at 88% 12%, rgba(31, 189, 255, .16), transparent 28%),
        linear-gradient(
            135deg,
            #004e8c 0%,
            #004e8c 38%,
            #00639b 72%,
            #1fbdff 130%
        ) !important;
}

/* SmartCo login button */
.fi-simple-layout .fi-btn,
.fi-simple-layout .fi-ac .fi-btn {
    background: #005f99 !important;
    border-color: #005f99 !important;
    color: #ffffff !important;
}

.fi-simple-layout .fi-btn:hover,
.fi-simple-layout .fi-ac .fi-btn:hover {
    background: #004e8c !important;
    border-color: #004e8c !important;
}

/* Compact login refinement */
.fi-simple-layout {
    padding: 10px !important;
}

.fi-simple-main {
    max-width: 420px !important;
    padding: 14px 20px !important;
    border-radius: 18px !important;
}

.fi-simple-main .fi-logo img {
    max-height: 78px !important;
    margin: 0 auto !important;
}

.fi-simple-header {
    margin-bottom: 8px !important;
}

.fi-simple-header-heading {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
}

.fi-simple-header::after {
    margin-top: 2px !important;
    font-size: 13px !important;
}

.fi-simple-main .fi-fo-component-ctn {
    gap: 6px !important;
}

.fi-simple-main .fi-fo-field-wrp {
    gap: 4px !important;
}

.fi-simple-main input {
    min-height: 40px !important;
}

.fi-simple-main .fi-ac {
    margin-top: 6px !important;
}

.fi-simple-main .fi-ac-btn-action[type=submit],
.fi-simple-main .fi-btn-color-primary,
.fi-simple-main .fi-btn.fi-color-primary {
    min-height: 42px !important;
}

.fi-simple-main form::after {
    margin-top: 7px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.fi-simple-main::after {
    margin-top: 7px !important;
    padding-top: 7px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

@media (max-width: 640px) {
    .fi-simple-main {
        padding: 14px 16px !important;
        border-radius: 16px !important;
    }

    .fi-simple-main .fi-logo img {
        max-height: 72px !important;
    }

    .fi-simple-header-heading {
        font-size: 22px !important;
    }
}



/* ==========================================================
   SmartCo CRM - Lean Business Login
   Added 2026-08
   ========================================================== */

html.smartco-login-shell .fi-simple-main,
html.smartco-login-shell .fi-simple-main-ctn {
    max-width: 430px !important;
}

html.smartco-login-shell .fi-simple-main {
    padding: 28px 30px 24px !important;
}

html.smartco-login-shell .fi-simple-header {
    margin-bottom: 20px !important;
    gap: 4px !important;
}

html.smartco-login-shell .fi-simple-header-heading {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

html.smartco-login-shell .fi-simple-header-subheading {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
}

html.smartco-login-shell .fi-fo-field-wrp {
    margin-bottom: 2px;
}

html.smartco-login-shell .smartco-login-forgot {
    color: #004e8c !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

html.smartco-login-shell .smartco-login-forgot:hover {
    text-decoration: underline;
}

html.smartco-login-shell .fi-btn[type="submit"] {
    min-height: 44px;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.smartco-login-legal {
    margin-top: 18px;
    text-align: center;
    color: #64748b;
}

.smartco-login-agreement {
    margin: 0 auto;
    max-width: 350px;
    font-size: 11.5px;
    line-height: 1.55;
}

.smartco-login-agreement strong {
    color: #334155;
    font-weight: 600;
}

.smartco-login-agreement span {
    color: #004e8c;
}

.smartco-login-legal-divider {
    height: 1px;
    margin: 18px 0 14px;
    background: #e5e7eb;
}

.smartco-login-recaptcha-copy {
    margin: 0 auto;
    max-width: 355px;
    font-size: 10.5px;
    line-height: 1.5;
    color: #7b8794;
}

.smartco-login-recaptcha-copy a {
    color: #004e8c;
    text-decoration: none;
}

.smartco-login-recaptcha-copy a:hover {
    text-decoration: underline;
}

.smartco-login-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #eef1f4;
    font-size: 10.5px;
    color: #64748b;
}

.smartco-login-footer-links span {
    white-space: nowrap;
}

@media (max-width: 520px) {
    html.smartco-login-shell .fi-simple-main {
        padding: 24px 22px 22px !important;
    }

    .smartco-login-footer-links {
        gap: 14px;
    }
}


/* ==========================================================
   SmartCo CRM - Compact Business Login Override
   ========================================================== */

html.smartco-login-shell,
html.smartco-login-shell body {
    min-height: 100% !important;
}

html.smartco-login-shell .fi-simple-layout {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

html.smartco-login-shell .fi-simple-main-ctn {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

html.smartco-login-shell .fi-simple-main {
    width: 100% !important;
    max-width: 430px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 24px 28px 22px !important;
    box-sizing: border-box !important;
}

html.smartco-login-shell .fi-simple-header {
    margin: 0 0 16px !important;
    padding: 0 !important;
    gap: 3px !important;
}

html.smartco-login-shell .fi-logo,
html.smartco-login-shell .fi-simple-header img {
    max-height: 46px !important;
    width: auto !important;
    margin: 0 auto 8px !important;
}

html.smartco-login-shell .fi-simple-header-heading {
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

html.smartco-login-shell .fi-simple-header-subheading {
    margin: 3px 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
}

html.smartco-login-shell form {
    gap: 12px !important;
}

html.smartco-login-shell .fi-fo-field-wrp {
    margin: 0 !important;
}

html.smartco-login-shell .fi-fo-field-wrp-label {
    margin-bottom: 5px !important;
}

html.smartco-login-shell input {
    min-height: 42px !important;
    height: 42px !important;
    font-size: 14px !important;
}

html.smartco-login-shell .fi-checkbox-input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
}

html.smartco-login-shell .fi-btn[type="submit"] {
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    margin-top: 2px !important;
    padding: 0 16px !important;
}

html.smartco-login-shell .smartco-login-legal {
    margin-top: 14px !important;
}

html.smartco-login-shell .smartco-login-agreement {
    max-width: 350px !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
}

html.smartco-login-shell .smartco-login-legal-divider {
    margin: 13px 0 10px !important;
}

html.smartco-login-shell .smartco-login-recaptcha-copy {
    max-width: 350px !important;
    font-size: 9.5px !important;
    line-height: 1.4 !important;
}

html.smartco-login-shell .smartco-login-footer-links {
    margin-top: 11px !important;
    padding-top: 10px !important;
    gap: 16px !important;
    font-size: 9.5px !important;
}

/* Existing SmartCo reCAPTCHA status box */
html.smartco-login-shell [class*="recaptcha"],
html.smartco-login-shell .smartco-recaptcha-status {
    margin-top: 10px !important;
}

@media (max-width: 520px) {
    html.smartco-login-shell .fi-simple-layout {
        padding: 14px !important;
        align-items: flex-start !important;
    }

    html.smartco-login-shell .fi-simple-main {
        max-width: 100% !important;
        padding: 20px 20px 18px !important;
    }
}


/* ==========================================================
   SmartCo CRM - Compact Business Login V2
   Authoritative size override
   ========================================================== */

html.smartco-login-shell .fi-simple-layout {
    min-height: 100vh !important;
    padding: 18px !important;
    align-items: center !important;
}

html.smartco-login-shell .fi-simple-main-ctn {
    width: 100% !important;
    max-width: 380px !important;
}

html.smartco-login-shell .fi-simple-main {
    width: 100% !important;
    max-width: 380px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;

    margin: 0 auto !important;
    padding: 18px 22px 16px !important;

    border-radius: 16px !important;
    box-sizing: border-box !important;
}


/* Logo + heading */

html.smartco-login-shell .fi-logo,
html.smartco-login-shell .fi-simple-header img {
    max-height: 38px !important;
    margin: 0 auto 5px !important;
}

html.smartco-login-shell .fi-simple-header {
    margin: 0 0 13px !important;
    padding: 0 !important;
    gap: 1px !important;
}

html.smartco-login-shell .fi-simple-header-heading {
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

html.smartco-login-shell .fi-simple-header-subheading {
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}


/* Form */

html.smartco-login-shell form {
    gap: 9px !important;
}

html.smartco-login-shell .fi-fo-field-wrp {
    margin: 0 !important;
}

html.smartco-login-shell .fi-fo-field-wrp-label {
    margin-bottom: 3px !important;
}

html.smartco-login-shell .fi-fo-field-wrp-label label {
    font-size: 12px !important;
    font-weight: 600 !important;
}

html.smartco-login-shell input:not([type="checkbox"]) {
    min-height: 38px !important;
    height: 38px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 13px !important;
}

html.smartco-login-shell .smartco-login-forgot {
    font-size: 10.5px !important;
}


/* Remember me */

html.smartco-login-shell .fi-checkbox-input {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
}

html.smartco-login-shell .fi-fo-checkbox label,
html.smartco-login-shell .fi-checkbox-label {
    font-size: 11px !important;
}


/* Sign in */

html.smartco-login-shell .fi-btn[type="submit"] {
    min-height: 39px !important;
    height: 39px !important;
    margin-top: 0 !important;
    padding: 0 14px !important;
    font-size: 13px !important;
}


/* Existing reCAPTCHA information box */

html.smartco-login-shell .smartco-recaptcha-status {
    min-height: 32px !important;
    margin-top: 6px !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
}


/* Legal */

html.smartco-login-shell .smartco-login-legal {
    margin-top: 9px !important;
}

html.smartco-login-shell .smartco-login-agreement {
    max-width: 310px !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
}

html.smartco-login-shell .smartco-login-legal-divider {
    margin: 9px 0 7px !important;
}

html.smartco-login-shell .smartco-login-recaptcha-copy {
    max-width: 310px !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
}

html.smartco-login-shell .smartco-login-footer-links {
    gap: 14px !important;
    margin-top: 8px !important;
    padding-top: 7px !important;
    font-size: 8.5px !important;
}


/* Mobile */

@media (max-width: 480px) {

    html.smartco-login-shell .fi-simple-layout {
        padding: 10px !important;
        align-items: flex-start !important;
    }

    html.smartco-login-shell .fi-simple-main-ctn,
    html.smartco-login-shell .fi-simple-main {
        max-width: 360px !important;
    }

    html.smartco-login-shell .fi-simple-main {
        padding: 17px 18px 15px !important;
    }
}

/* ==========================================================
   SmartCo CRM - tighten reCAPTCHA / legal spacing
   ========================================================== */

html.smartco-login-shell .smartco-recaptcha-status {
    margin-top: 6px !important;
    margin-bottom: 2px !important;
}

html.smartco-login-shell .smartco-login-legal {
    margin-top: 2px !important;
}

html.smartco-login-shell .smartco-login-agreement {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

html.smartco-login-shell .smartco-login-legal-divider {
    margin: 6px 0 6px !important;
}

html.smartco-login-shell .smartco-login-recaptcha-copy {
    margin-top: 0 !important;
}

/* SmartCo CRM - tighter login card padding */

html.smartco-login-shell .fi-simple-main {
    padding: 14px 20px 11px !important;
}

/* Reduce vertical breathing room through the lower half */
html.smartco-login-shell form {
    gap: 7px !important;
}

html.smartco-login-shell .smartco-recaptcha-status {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

html.smartco-login-shell .smartco-login-legal {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html.smartco-login-shell .smartco-login-agreement {
    padding-top: 0 !important;
}

html.smartco-login-shell .smartco-login-footer-links {
    margin-top: 6px !important;
    padding-top: 6px !important;
}

@media (max-width: 480px) {
    html.smartco-login-shell .fi-simple-main {
        padding: 13px 16px 10px !important;
    }
}

/* SmartCo CRM login - tighter Filament schema spacing */
html.smartco-login-shell .fi-sc.fi-sc-has-gap {
    gap: calc(var(--spacing) * 1.5) !important;
}

html.smartco-login-shell .fi-sc.fi-sc-has-gap.fi-sc-dense {
    gap: calc(var(--spacing) * 1.25) !important;
}
