/* =========================================
   THE SWELL SCORE
   Listmonk v6.2.0 - Public Branding
   ========================================= */

:root {
    --tss-primary: #08564E;
    --tss-hover: #06443E;
    --tss-navy: #102D3A;
    --tss-sage: #718875;
    --tss-bg: #F3F2EE;
    --tss-light: #EDF3EE;
    --tss-white: #FFFFFF;
    --tss-border: #D5DDD7;
    --tss-text: #344A50;
    --primary-color: #08564E !important;
    --primary-color-opaque: #08564E40 !important;
    --primary-color-light: #08564E80 !important;
}


/* Public page layout */
html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0 !important;
    padding: 32px 20px !important;
    box-sizing: border-box;
    background: var(--tss-bg) !important;
    color: var(--tss-text);
    font-family: "Inter", -apple-system,
        BlinkMacSystemFont, "Segoe UI",
        Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main container */

.container.wrap {
    width: 100% !important;
    max-width: 560px !important;
    min-width: 0;
    margin: auto !important;
    padding: 40px !important;
    box-sizing: border-box;
    background: var(--tss-white) !important;
    border: 1px solid var(--tss-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(16,45,58,.07);
}

/* Center logo */

.header {
    text-align: center !important;
    padding: 0 0 24px !important;
    margin: 0 0 24px !important;
    border-bottom: 1px solid #E4E8E3;
}

.header .logo {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.header .logo a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
}

.header .logo img {
    display: block !important;
    width: 140px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    margin: 0 auto !important;
}

/* Headings */

h1, h2, h3, h4 {
    color: var(--tss-navy) !important;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

h1, h2 {
    font-size: 28px;
    text-align: center;
    margin: 0 0 24px;
}

h3 {
    font-size: 20px;
}

/* Form labels */

label,
legend {
    color: var(--tss-navy);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 7px;
}

/* Form inputs */

input:not([type]),
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px !important;
    margin-bottom: 16px;
    box-sizing: border-box;
    background: var(--tss-white) !important;
    color: var(--tss-navy) !important;
    border: 1px solid #899993 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    transition: border-color .2s;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #596C65;
}

/* Focus states */

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--tss-primary) !important;
    outline-offset: 2px;
    border-color: var(--tss-primary) !important;
}

/* Checkboxes and radio buttons */

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--tss-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
}

/* Buttons */

button,
.button,
.button-primary,
input[type="submit"],
input[type="button"] {
    background: var(--tss-primary) !important;
    border: 1px solid var(--tss-primary) !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    min-height: 46px;
    height: auto;
    padding: 12px 20px !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s;
}

button:hover:not([disabled]),
.button:hover,
.button-primary:hover,
input[type="submit"]:hover:not([disabled]) {
    background: var(--tss-hover) !important;
    border-color: var(--tss-hover) !important;
    color: #FFFFFF !important;
}

button[disabled],
input[type="submit"][disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* Secondary buttons */

.button.button-outline,
button.button-outline {
    background: transparent !important;
    border: 1px solid var(--tss-primary) !important;
    color: var(--tss-primary) !important;
}

.button.button-outline:hover,
button.button-outline:hover {
    background: var(--tss-light) !important;
    color: var(--tss-primary) !important;
}

/* Full width login button */

form.login button,
.login button[type="submit"],
.login input[type="submit"],
.login .button-primary {
    width: 100% !important;
}

/* Text links: replace native blue underline and decorative borders */
html body a:not(.button):not(.button-primary):not(.button-outline) {
    color: var(--tss-primary) !important;
    text-decoration: underline !important;
    text-decoration-color: currentColor !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}
html body a:not(.button):not(.button-primary):not(.button-outline):hover {
    color: var(--tss-hover) !important;
}
html body .header .logo a,
html body a.button,
html body a.button-primary,
html body a.button-outline {
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}
html body .header .logo a {
    border: 0 !important;
}
a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--tss-primary) !important;
    outline-offset: 4px;
}

/* Forgot password and center alignment */

.center {
    text-align: center;
}

.login .center,
.login .small {
    font-size: 14px;
    margin-top: 18px;
}

/* Content spacing */

p {
    margin-bottom: 16px;
}

hr {
    border: 0;
    border-top: 1px solid #E4E8E3;
    margin: 24px 0;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: var(--tss-navy);
    background: var(--tss-light);
}

td, th {
    padding: 10px;
    border-bottom: 1px solid var(--tss-border);
}

/* Alerts and messages */

.error {
    background: #FEF3F2;
    color: #B42318 !important;
    border-radius: 6px;
    padding: 12px;
}

.success {
    color: #176544;
}

.message {
    overflow-wrap: anywhere;
}

/* Hide Powered by Listmonk footer */

body > footer.container,
body footer:has(a[href*="listmonk.app"]) {
    display: none !important;
}

/* Mobile responsive */

@media (max-width: 600px) {
    body {
        padding: 20px 14px !important;
    }

    .container.wrap {
        padding: 24px !important;
        border-radius: 12px;
    }

    .header .logo img {
        width: 115px !important;
    }

    h1, h2 {
        font-size: 24px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    button,
    input,
    textarea,
    .button {
        transition: none !important;
    }
}