:root {
    --suski-red: #b32025;
    --suski-red-hover: #96191d;
    --suski-red-dark: #721216;
    --suski-gold: #c9a227;
    --suski-ivory: #f8f6f0;
    --suski-white: #ffffff;
    --suski-charcoal: #222222;
    --suski-muted: #666666;
    --suski-border: #d8d4cc;
    --suski-radius: 14px;
    --suski-shadow: 0 12px 34px rgb(0 0 0 / 10%);
    --suski-font:
        Inter,
        "IBM Plex Sans",
        "Source Sans 3",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html.suski-grommunio-login body {
    min-height: 100vh !important;
    overflow-x: hidden;
    color: var(--suski-charcoal);
    font-family: var(--suski-font) !important;
    background:
        linear-gradient(
            135deg,
            rgb(248 246 240 / 95%),
            rgb(255 255 255 / 94%)
        ),
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 210px,
            rgb(201 162 39 / 3%) 210px,
            rgb(201 162 39 / 3%) 420px
        ),
        var(--suski-ivory) !important;
}

/* Remove native Grommunio branding */
html.suski-grommunio-login img[src*="grommunio"],
html.suski-grommunio-login img[alt*="grommunio" i],
html.suski-grommunio-login [class*="logo"] img,
html.suski-grommunio-login [class*="brand"] img {
    display: none !important;
}

/* Main login container */
html.suski-grommunio-login .suski-grommunio-shell {
    position: relative;
    z-index: 10;
    width: min(100% - 32px, 520px);
    margin: 0 auto;
    padding: clamp(48px, 8vh, 92px) 0 110px;
}

/* Brand header */
html.suski-grommunio-login .suski-grommunio-brand {
    margin: 0 auto 34px;
    text-align: center;
}

html.suski-grommunio-login .suski-grommunio-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

html.suski-grommunio-login .suski-grommunio-logo {
    width: 72px;
    height: 84px;
    flex: 0 0 auto;
    background:
        url("https://assets.suski.io/s_overrides/img/suski-grommunio-logo.png")
        center / contain
        no-repeat;
}

html.suski-grommunio-login .suski-grommunio-title {
    margin: 0;
    color: var(--suski-charcoal);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.suski-grommunio-login .suski-grommunio-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 220px;
    margin: 16px auto 0;
    color: var(--suski-gold);
}

html.suski-grommunio-login .suski-grommunio-divider::before,
html.suski-grommunio-login .suski-grommunio-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--suski-gold);
}

html.suski-grommunio-login .suski-grommunio-divider::marker {
    display: none;
}

html.suski-grommunio-login .suski-grommunio-subtitle {
    margin: 18px 0 0;
    color: var(--suski-charcoal);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Card */
html.suski-grommunio-login .suski-grommunio-card {
    width: 100%;
    padding: 42px 38px 38px;
    border: 1px solid rgb(201 162 39 / 38%);
    border-top: 3px solid var(--suski-gold);
    border-radius: 20px;
    background: rgb(255 255 255 / 96%);
    box-shadow: var(--suski-shadow);
}

html.suski-grommunio-login .suski-grommunio-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 30px;
    color: var(--suski-charcoal);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 650;
}

html.suski-grommunio-login .suski-grommunio-card-title::before,
html.suski-grommunio-login .suski-grommunio-card-title::after {
    content: "";
    width: 62px;
    height: 1px;
    background: rgb(201 162 39 / 55%);
}

/* Reset original wrappers */
html.suski-grommunio-login form,
html.suski-grommunio-login .suski-grommunio-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Inputs */
html.suski-grommunio-login input[type="text"],
html.suski-grommunio-login input[type="email"],
html.suski-grommunio-login input[type="password"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 62px !important;
    margin: 0 0 18px !important;
    padding: 0 20px !important;
    border: 1px solid var(--suski-border) !important;
    border-radius: 10px !important;
    outline: none !important;
    background: var(--suski-white) !important;
    color: var(--suski-charcoal) !important;
    font: inherit !important;
    font-size: 17px !important;
    box-shadow: none !important;
}

html.suski-grommunio-login input::placeholder {
    color: #999999 !important;
}

html.suski-grommunio-login input:focus {
    border-color: var(--suski-red) !important;
    box-shadow: 0 0 0 3px rgb(179 32 37 / 14%) !important;
}

/* Sign-in button */
html.suski-grommunio-login button[type="submit"],
html.suski-grommunio-login input[type="submit"],
html.suski-grommunio-login .suski-primary-login-button {
    display: block !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 6px 0 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background:
        linear-gradient(
            180deg,
            var(--suski-red),
            var(--suski-red-dark)
        ) !important;
    color: var(--suski-white) !important;
    font: inherit !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

html.suski-grommunio-login button[type="submit"]:hover,
html.suski-grommunio-login input[type="submit"]:hover {
    background:
        linear-gradient(
            180deg,
            var(--suski-red-hover),
            #651014
        ) !important;
}

/* Hide unwanted original decorations */
html.suski-grommunio-login .suski-native-hidden {
    display: none !important;
}

/* Footer */
html.suski-grommunio-login .suski-grommunio-footer {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgb(201 162 39 / 55%);
    background: rgb(248 246 240 / 88%);
    backdrop-filter: blur(10px);
}

html.suski-grommunio-login .suski-grommunio-footer a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--suski-red-dark);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

html.suski-grommunio-login .suski-grommunio-footer a::before {
    content: "";
    width: 25px;
    height: 29px;
    background:
        url("https://assets.suski.io/s_overrides/img/suski-grommunio-logo.png")
        center / contain
        no-repeat;
}

html.suski-grommunio-login .suski-grommunio-footer a:hover {
    color: var(--suski-red);
    text-decoration: underline;
}

@media (max-width: 600px) {
    html.suski-grommunio-login .suski-grommunio-shell {
        width: min(100% - 24px, 520px);
        padding-top: 30px;
        padding-bottom: 92px;
    }

    html.suski-grommunio-login .suski-grommunio-brand-row {
        gap: 12px;
    }

    html.suski-grommunio-login .suski-grommunio-logo {
        width: 56px;
        height: 66px;
    }

    html.suski-grommunio-login .suski-grommunio-title {
        font-size: 26px;
    }

    html.suski-grommunio-login .suski-grommunio-subtitle {
        font-size: 12px;
        letter-spacing: 0.15em;
    }

    html.suski-grommunio-login .suski-grommunio-card {
        padding: 34px 22px 28px;
    }
}

/* ===== Suski Grommunio layout adjustments ===== */

/* Hide original Grommunio branding */
img[src*="grommunio"],
img[alt*="grommunio" i],
[class*="logo"] img[src*="grommunio"]{
    display:none !important;
}

/* Wider outer panel */
.suski-grommunio-shell{
    width:min(760px,92vw)!important;
    max-width:760px!important;
}

/* Wider login card */
.suski-grommunio-card{
    width:100%!important;
    max-width:640px!important;
    margin:0 auto!important;
    padding:48px!important;
}

/* Full width form */
.suski-grommunio-form,
.suski-grommunio-form form{
    width:100%!important;
    max-width:none!important;
}

/* Inputs */
.suski-grommunio-form input{
    width:100%!important;
    height:56px!important;
    font-size:17px!important;
}

/* Submit button */
.suski-grommunio-form button,
.suski-grommunio-form input[type=submit]{
    width:100%!important;
    height:58px!important;
}

/* ===== Adjustments ===== */

/* Hide original login container completely */
#form-container{
    visibility:hidden !important;
}

/* Move custom login higher */
html.suski-grommunio-login .suski-grommunio-shell{
    padding-top:24px !important;
}

/* Slightly wider card */
html.suski-grommunio-login .suski-grommunio-card{
    max-width:660px !important;
}

