/* =========================================================
   HOMEDEN CRM LOGIN
========================================================= */

:root {
    --crm-auth-heading: #17201d;
    --crm-auth-text: #68726e;
    --crm-auth-caption: #8d9692;
    --crm-auth-primary: #0f6e56;
    --crm-auth-primary-dark: #084d3c;
    --crm-auth-accent: #e07a3f;
    --crm-auth-yellow: #f4c95d;
    --crm-auth-light: #f4f7f5;
    --crm-auth-border: #dfe8e3;
    --crm-auth-white: #ffffff;
    --crm-auth-danger: #b64242;
    --crm-auth-success: #147052;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--crm-auth-light);
    color: var(--crm-auth-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* Page layout */

.crm-auth-page {
    display: grid;
    grid-template-columns:
        minmax(420px, 0.92fr)
        minmax(480px, 1.08fr);
    min-height: 100vh;
}


/* Brand panel */

.crm-auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px;
    background:
        radial-gradient(
            circle at 83% 17%,
            rgb(244 201 93 / 20%),
            transparent 27%
        ),
        radial-gradient(
            circle at 9% 89%,
            rgb(255 255 255 / 8%),
            transparent 28%
        ),
        var(--crm-auth-primary);
    color: var(--crm-auth-white);
}

.crm-auth-brand-panel::before {
    position: absolute;
    top: -120px;
    right: -110px;
    width: 320px;
    height: 320px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 50%;
    content: "";
}

.crm-auth-brand-panel::after {
    position: absolute;
    right: 70px;
    bottom: 80px;
    width: 140px;
    height: 140px;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 35px;
    content: "";
    transform: rotate(18deg);
}

.crm-auth-logo,
.crm-auth-brand-content,
.crm-auth-security-note {
    position: relative;
    z-index: 2;
}

.crm-auth-logo {
    display: inline-flex;
    width: fit-content;
}

.crm-auth-logo img {
    display: block;
    width: auto;
    max-width: 170px;
    height: 54px;
    object-fit: contain;
}

.crm-auth-brand-content {
    max-width: 600px;
    margin: 70px 0;
}

.crm-auth-brand-content > span {
    color: var(--crm-auth-yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.crm-auth-brand-content h1 {
    max-width: 590px;
    margin: 15px 0 16px;
    color: var(--crm-auth-white);
    font-size: clamp(36px, 4.2vw, 57px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.crm-auth-brand-content > p {
    max-width: 540px;
    margin: 0;
    color: rgb(255 255 255 / 74%);
    font-size: 14px;
    line-height: 1.8;
}

.crm-auth-features {
    display: grid;
    gap: 11px;
    max-width: 500px;
    margin-top: 32px;
}

.crm-auth-features article {
    padding: 15px 17px;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 12px;
    background: rgb(255 255 255 / 7%);
    backdrop-filter: blur(8px);
}

.crm-auth-features strong,
.crm-auth-features small {
    display: block;
}

.crm-auth-features strong {
    color: var(--crm-auth-white);
    font-size: 12px;
    font-weight: 750;
}

.crm-auth-features small {
    margin-top: 4px;
    color: rgb(255 255 255 / 64%);
    font-size: 10px;
}

.crm-auth-security-note {
    margin: 0;
    color: rgb(255 255 255 / 53%);
    font-size: 9px;
    letter-spacing: 0.04em;
}


/* Form panel */

.crm-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
    background: var(--crm-auth-white);
}

.crm-auth-form-wrapper {
    width: min(100%, 460px);
}

.crm-auth-mobile-logo {
    display: none;
    margin-bottom: 32px;
}

.crm-auth-mobile-logo img {
    width: auto;
    max-width: 165px;
    height: 50px;
    object-fit: contain;
}

.crm-auth-form-wrapper header > span {
    color: var(--crm-auth-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.crm-auth-form-wrapper header h2 {
    margin: 9px 0 10px;
    color: var(--crm-auth-heading);
    font-size: clamp(29px, 3vw, 39px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.crm-auth-form-wrapper header p {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
}


/* Messages */

.crm-auth-messages {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.crm-auth-message {
    padding: 12px 14px;
    border: 1px solid var(--crm-auth-border);
    border-radius: 10px;
    background: var(--crm-auth-light);
    color: var(--crm-auth-text);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}

.crm-auth-message.is-error {
    border-color: rgb(182 66 66 / 25%);
    background: #fff1f1;
    color: var(--crm-auth-danger);
}

.crm-auth-message.is-success {
    border-color: rgb(20 112 82 / 25%);
    background: #edf8f3;
    color: var(--crm-auth-success);
}


/* Form */

.crm-auth-form {
    display: grid;
    gap: 19px;
    margin-top: 29px;
}

.crm-auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--crm-auth-heading);
    font-size: 10px;
    font-weight: 750;
}

.crm-auth-field > input,
.crm-auth-password-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--crm-auth-border);
    border-radius: 10px;
    outline: 0;
    background: var(--crm-auth-light);
    color: var(--crm-auth-heading);
    font-size: 11px;
    font-weight: 600;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}

.crm-auth-field > input:focus,
.crm-auth-password-field input:focus {
    border-color: var(--crm-auth-primary);
    background: var(--crm-auth-white);
    box-shadow: 0 0 0 4px rgb(15 110 86 / 8%);
}

.crm-auth-password-field {
    position: relative;
}

.crm-auth-password-field input {
    padding-right: 68px;
}

.crm-auth-password-field button {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--crm-auth-primary);
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.crm-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    padding: 11px 18px;
    border: 1px solid var(--crm-auth-primary);
    border-radius: 10px;
    background: var(--crm-auth-primary);
    color: var(--crm-auth-white);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 150ms ease,
        transform 150ms ease;
}

.crm-auth-submit:hover {
    background: var(--crm-auth-primary-dark);
    transform: translateY(-1px);
}

.crm-auth-public-link {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 25px;
    font-size: 10px;
}

.crm-auth-public-link span {
    color: var(--crm-auth-caption);
}

.crm-auth-public-link a {
    color: var(--crm-auth-primary);
    font-weight: 800;
}


/* Responsive */

@media (max-width: 980px) {
    .crm-auth-page {
        grid-template-columns:
            minmax(340px, 0.8fr)
            minmax(430px, 1.2fr);
    }

    .crm-auth-brand-panel,
    .crm-auth-form-panel {
        padding: 36px;
    }
}

@media (max-width: 780px) {
    .crm-auth-page {
        display: block;
    }

    .crm-auth-brand-panel {
        display: none;
    }

    .crm-auth-form-panel {
        min-height: 100vh;
        padding: 42px 24px;
    }

    .crm-auth-mobile-logo {
        display: block;
    }
}

@media (max-width: 480px) {
    .crm-auth-form-panel {
        padding: 32px 20px;
    }

    .crm-auth-form-wrapper header h2 {
        font-size: 29px;
    }
}