/* ============================================================
   Hostino — Custom UI overrides
   Loaded last by includes/head.tpl (after theme.css + minified.css),
   so these rules win without touching the compiled theme files.
   ============================================================ */

/* ------------------------------------------------------------
   Brand gradient + shared variable overrides
   - --main-header-banner-bg : page-title banner (blue -> small green sliver)
   - --primary-block-bg      : sidebar primary panel (client details)  -> blue only
   - --panel-home-domain-bg  : "Register a New Domain" block            -> blue only
   ------------------------------------------------------------ */
:root {
    --main-header-banner-bg:
        radial-gradient(640px 320px at 100% 42%, rgba(0, 208, 132, 0.20), rgba(0, 208, 132, 0) 62%),
        linear-gradient(120deg, #022545 0%, #022545 60%, #004C48 90%, #084448 100%);
    --primary-block-blue: linear-gradient(160deg, #022545 0%, #04305c 100%);
    --primary-block-bg: var(--primary-block-blue);
    --panel-home-domain-bg: var(--primary-block-blue);
    --main-header-title-font-weight: 500;
}

/* ------------------------------------------------------------
   Main header (page-title banner)
   ------------------------------------------------------------ */
body.lagom-layout-banner .main-header,
body.lagom-layout-banner .app-main-order .main-header,
.main-header-banner {
    position: relative;
    overflow: hidden;
    background-color: #022545 !important;
    background-image: var(--main-header-banner-bg) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

body.lagom-layout-banner .main-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.6px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 18%, transparent 92%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 18%, transparent 92%);
    pointer-events: none;
    z-index: 0;
}

body.lagom-layout-banner .main-header > * {
    position: relative;
    z-index: 1;
}

body.lagom-layout-banner .main-header .main-header-title,
.main-header-banner .main-header-title,
.main-header-title {
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
   Non-header blue/primary blocks — blue background only (no green).
   ------------------------------------------------------------ */
body .panel-sidebar.panel-sidebar-primary,
body .client-home-panels .panel-domain-register {
    background-color: #022545 !important;
    background-image: var(--primary-block-blue) !important;
}

/* ============================================================
   Login page — clean, neutral, minimal (Hostinger-style)
   ============================================================ */
:root {
    --login-width: 440px;
    --login-bg: #ffffff;
    --login-border: 1px solid #e6e9f0;
    --login-border-radius: 16px;
    --login-padding: 40px;
    --login-box-shadow: 0 18px 50px rgba(2, 37, 69, 0.10);
    --login-footer-bg: #ffffff;
}

/* Light neutral page background */
body.page-login,
body.page-login.page-login-primary {
    background: #f8f8f8 !important;
}

body.page-login .login-wrapper {
    overflow: hidden;
}

/* Heading */
body.page-login .login-title {
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    color: #022545;
    letter-spacing: -0.01em;
    margin-bottom: 26px;
    -webkit-font-smoothing: antialiased;
}

/* Fields */
body.page-login .login-form .form-group {
    margin-bottom: 18px;
}
body.page-login .login-form label {
    font-weight: 500;
    font-size: 14px;
    color: #455164;
    margin-bottom: 7px;
}
body.page-login .login-form .form-control,
body.page-login .login-form .input-lg {
    height: 52px;
    border-radius: 10px;
    border: 1px solid #dde2ec;
    background: #fff;
    font-size: 15px;
    color: #022545;
    padding: 0 16px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.page-login .login-form .form-control:focus,
body.page-login .login-form .input-lg:focus {
    border-color: #00d084;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.12);
}

/* Remember-me + links neutral */
body.page-login .login-form .checkbox {
    color: #455164;
    font-weight: 400;
}

/* Remember-me box: was white-on-white (built for the old dark login).
   Give it a visible gray border on the light card, brand green when checked. */
body.page-login .login-form .checkbox-styled {
    background: #ffffff !important;
    border: 2px solid #c9d0db !important;
}
body.page-login .login-form .checkbox-styled:hover {
    border-color: #00d084 !important;
}
body.page-login .login-form .checkbox-styled.checked {
    background: #00d084 !important;
    border-color: #00d084 !important;
}
body.page-login .login-form .checkbox-styled.checked:before {
    color: #ffffff;
}
body.page-login a {
    color: #022545;
    font-weight: 500;
}
body.page-login a:hover {
    color: #003cb2;
}

/* Primary button — brand green, full width */
body.page-login .login-form .btn,
body.page-login .login-form .btn-primary {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #00d084 !important;
    border-color: #00d084 !important;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 15px;
    box-shadow: none;
    transition: background 0.15s ease, transform 0.08s ease;
}
body.page-login .login-form .btn:hover,
body.page-login .login-form .btn-primary:hover {
    background: #00b873 !important;
    border-color: #00b873 !important;
}
body.page-login .login-form .btn:active,
body.page-login .login-form .btn-primary:active {
    transform: translateY(1px);
}

/* Footer (create-account) */
body.page-login .login-footer {
    background: #ffffff;
}
body.page-login .login-footer .text-light {
    color: #6b7686 !important;
}

/* Language chooser under the card */
body.page-login .login-language,
body.page-login .login-language a {
    color: #6b7686 !important;
}

/* ------------------------------------------------------------
   Navigation menu — desktop horizontal (top / condensed layout)
   ------------------------------------------------------------ */
@media (min-width: 1200px) {
    .app-nav-menu .menu > li > a:not(.btn) {
        position: relative;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .app-nav-menu .menu > li > a:not(.btn)::after {
        content: "";
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 10px;
        height: 2px;
        border-radius: 2px;
        background: var(--brand-primary, #00d084);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.22s ease;
        pointer-events: none;
    }

    .app-nav-menu .menu > li > a:not(.btn):hover,
    .app-nav-menu .menu > li.active > a:not(.btn),
    .app-nav-menu .menu > li.open > a:not(.btn) {
        color: var(--brand-secondary, #022545);
    }

    .app-nav-menu .menu > li > a:not(.btn):hover::after,
    .app-nav-menu .menu > li.active > a:not(.btn)::after,
    .app-nav-menu .menu > li.open > a:not(.btn)::after {
        transform: scaleX(1);
    }
}

/* ------------------------------------------------------------
   Navigation menu — mobile / condensed slide drawer
   ------------------------------------------------------------ */
@media (max-width: 1199px) {
    .app-nav-menu .menu > li > a:not(.btn) {
        border-radius: 10px;
        margin: 2px 0;
        transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .app-nav-menu .menu > li > a:not(.btn):hover {
        background: rgba(0, 208, 132, 0.08);
        color: var(--brand-secondary, #022545);
    }

    .app-nav-menu .menu > li.active > a:not(.btn),
    .app-nav-menu .menu > li.open > a:not(.btn) {
        background: rgba(0, 208, 132, 0.12);
        color: var(--brand-secondary, #022545);
        box-shadow: inset 3px 0 0 var(--brand-primary, #00d084);
    }
}

/* Dropdown caret: smooth rotate when a parent item is open */
.app-nav-menu .menu > li .caret,
.app-nav-menu .menu > li > a .caret {
    transition: transform 0.2s ease;
}
.app-nav-menu .menu > li.open > a .caret {
    transform: rotate(180deg);
}

/* ------------------------------------------------------------
   Login page — minimal Hostinger-style chrome.
   Keep only the logo (top-left) and the language switcher (bottom).
   Hide the header nav (hamburger + currency) and the copyright bar.
   ------------------------------------------------------------ */
body.page-login .app-nav-toggle { display: none !important; }
body.page-login .top-nav { display: none !important; }
body.page-login .app-nav,
body.page-login .app-nav-header,
body.page-login #header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.page-login .app-nav-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
/* Center the logo (both the desktop .app-nav-menu bar and the mobile header) */
body.page-login .app-nav-menu .container { justify-content: center !important; }
body.page-login .app-nav .logo,
body.page-login .app-nav-menu .logo { float: none !important; margin: 0 auto !important; }
/* Match the normal client-area logo size (theme var ~42px desktop / 40px mobile) */
body.page-login .app-nav .logo img,
body.page-login .app-nav-menu .logo img {
    height: var(--app-nav-logo-height, 42px) !important;
    max-height: var(--app-nav-logo-height, 42px) !important;
    width: auto !important;
}

body.page-login .main-footer,
body.page-login .footer-bottom {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.page-login .footer-copyright { display: none !important; }
body.page-login .main-footer .container {
    text-align: center;
    justify-content: center !important;
}
body.page-login .main-footer .footer-nav {
    display: inline-flex !important;
    justify-content: center !important;
    float: none !important;
}

/* Logo placement differs by breakpoint on the logged-out login:
   - desktop (>=1200px): the logo lives inside .app-nav-menu (the bar that
     produced the white band). Keep it, but make it transparent and drop the
     nav links so only the logo shows.
   - mobile (<1200px): .app-nav-menu is the off-canvas drawer; hide it (the
     logo comes from the header instead). */
@media (min-width: 1200px) {
    body.page-login .app-nav-menu {
        display: block !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    body.page-login .app-nav-menu .menu,
    body.page-login .app-nav-menu .menu-primary { display: none !important; }
}
@media (max-width: 1199px) {
    body.page-login .app-nav-menu { display: none !important; }
}

/* Drop the "scroll to top" arrow in the footer so the language sits centered */
body.page-login .main-footer .lm-go-top { display: none !important; }
body.page-login .main-footer li:has(.lm-go-top) { display: none !important; }

/* Softer, balanced card shadow (was bottom-heavy with an 18px offset) */
body.page-login .login-wrapper {
    box-shadow: 0 12px 32px rgba(2, 37, 69, 0.07) !important;
}

/* Mobile: align content to the top so the card sits just under the centered
   logo instead of floating in the middle; footer follows. */
@media (max-width: 767px) {
    body.page-login .app-main { justify-content: flex-start !important; }
    /* a touch more breathing room below the logo */
    body.page-login .main-body { flex: 0 0 auto !important; padding-top: 26px !important; }
    body.page-login .main-footer { margin-top: 28px !important; }
    /* slightly smaller logo on phones */
    body.page-login .app-nav .logo img,
    body.page-login .app-nav-menu .logo img {
        height: 34px !important;
        max-height: 34px !important;
    }
}
