:root {
    --beeko-blue: #0F9D58;
    --beeko-blue-dark: #087A45;
    --beeko-heading: #010b21;
    --beeko-text: #44506a;
    --beeko-border: #d7ddec;
    --beeko-danger: #c73535;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--beeko-heading);
    background: #fff;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.beeko-login-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.beeko-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.beeko-login-visual {
    min-height: 100vh;
    padding: clamp(28px, 3.4vw, 64px) clamp(28px, 3vw, 56px);
    background-position: center;
    background-size: cover;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.beeko-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 15, 30, 0.06) 5%, rgba(0, 10, 24, 0.08) 45%, rgba(0, 8, 20, 0.76) 100%);
}

.beeko-login-brand {
    display: inline-flex;
    width: max-content;
    align-items: center;
}

.beeko-login-brand img {
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.beeko-login-brand-light img {
    width: 235px;
    height: 54px;
}

.beeko-login-testimonial {
    max-width: 760px;
    color: #fff;
    padding-bottom: clamp(8px, 1.2vw, 22px);
}

.beeko-login-testimonial p {
    max-width: 700px;
    margin: 0 0 28px;
    font-size: clamp(19px, 1.55vw, 27px);
    line-height: 1.38;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.beeko-login-testimonial h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(18px, 1.3vw, 24px);
    line-height: 1.2;
    font-weight: 750;
}

.beeko-login-testimonial span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.35;
}

.beeko-login-panel {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 56px 28px;
    background: #fff;
}

.beeko-login-panel::before,
.beeko-login-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(15, 157, 88, 0.06);
}

.beeko-login-panel::before {
    width: 220px;
    height: 220px;
    top: -145px;
    right: -90px;
}

.beeko-login-panel::after {
    width: 160px;
    height: 160px;
    left: -105px;
    bottom: -85px;
}

.beeko-decor-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--beeko-blue);
    box-shadow: 0 0 0 1px rgba(15, 157, 88, 0.10);
}

.beeko-decor-dot-top {
    top: 20.5%;
    right: 4.3%;
}

.beeko-decor-dot-bottom {
    left: 7.2%;
    bottom: 10%;
    width: 8px;
    height: 8px;
    opacity: 0.28;
}

.beeko-login-form-wrap {
    position: relative;
    z-index: 2;
    width: min(100%, 432px);
    margin: 0 auto;
}

.beeko-login-brand-mobile {
    display: none;
    margin-bottom: 28px;
}

.beeko-login-brand-mobile img {
    width: 205px;
    max-height: 54px;
}

.beeko-login-heading {
    text-align: center;
    margin-bottom: 34px;
}

.beeko-login-heading h1 {
    margin: 0 0 12px;
    color: var(--beeko-heading);
    font-size: clamp(32px, 2.4vw, 43px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.beeko-login-heading p {
    margin: 0 auto;
    max-width: 390px;
    color: #68728a;
    font-size: 15px;
    line-height: 1.55;
}

.beeko-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #f3c7c7;
    border-radius: 8px;
    color: var(--beeko-danger);
    background: #fff3f3;
    font-size: 14px;
    line-height: 1.45;
}

.beeko-login-alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    fill: currentColor;
}

.beeko-login-form {
    width: 100%;
}

.beeko-field {
    margin-bottom: 16px;
}

.beeko-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.beeko-field input {
    width: 100%;
    height: 60px;
    border: 1px solid var(--beeko-border);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--beeko-heading);
    padding: 0 20px;
    font-size: 17px;
    line-height: 1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beeko-field input::placeholder {
    color: #263452;
    opacity: 0.88;
}

.beeko-field input:focus {
    border-color: var(--beeko-blue);
    box-shadow: 0 0 0 4px rgba(15, 157, 88, 0.12);
}

.beeko-password-field {
    position: relative;
}

.beeko-password-field input {
    padding-right: 58px;
}

.beeko-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #748099;
    background: transparent;
    cursor: pointer;
}

.beeko-password-toggle:hover,
.beeko-password-toggle:focus-visible {
    color: var(--beeko-blue);
    background: rgba(15, 157, 88, 0.08);
    outline: none;
}

.beeko-password-toggle svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.beeko-password-toggle .eye-closed,
.beeko-password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.beeko-password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.beeko-login-options {
    min-height: 30px;
    margin: 20px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #5f6980;
    font-size: 14px;
    line-height: 1.4;
}

.beeko-login-options a {
    flex: 0 0 auto;
    color: var(--beeko-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.beeko-login-options a:hover {
    color: var(--beeko-blue-dark);
}

.beeko-login-submit {
    width: 100%;
    min-height: 60px;
    border: 0;
    border-radius: 8px;
    padding: 14px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    background: var(--beeko-blue);
    box-shadow: 0 12px 26px rgba(15, 157, 88, 0.20);
    cursor: pointer;
    font-size: 16px;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.beeko-login-submit:hover {
    background: var(--beeko-blue-dark);
    box-shadow: 0 15px 30px rgba(8, 122, 69, 0.28);
    transform: translateY(-1px);
}

.beeko-login-submit:active {
    transform: translateY(0);
}

.beeko-login-submit:focus-visible {
    outline: 3px solid rgba(15, 157, 88, 0.26);
    outline-offset: 3px;
}

.beeko-login-submit svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.beeko-login-footer {
    margin: 35px 0 0;
    color: #707a90;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .beeko-login-layout {
        grid-template-columns: 46% 54%;
    }

    .beeko-login-visual {
        padding: 36px 30px;
    }

    .beeko-login-brand-light img {
        width: 200px;
    }
}

@media (max-width: 820px) {
    .beeko-login-layout {
        display: block;
    }

    .beeko-login-visual {
        display: none;
    }

    .beeko-login-panel {
        min-height: 100vh;
        padding: 42px 24px;
        background: linear-gradient(145deg, #f4fbf7 0%, #ffffff 55%, #f2faf6 100%);
    }

    .beeko-login-brand-mobile {
        display: inline-flex;
    }

    .beeko-login-heading {
        text-align: left;
    }

    .beeko-login-heading p {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .beeko-login-panel {
        align-items: flex-start;
        padding: 30px 20px 40px;
    }

    .beeko-login-form-wrap {
        width: 100%;
    }

    .beeko-login-heading {
        margin-bottom: 28px;
    }

    .beeko-login-heading h1 {
        font-size: 30px;
    }

    .beeko-field input {
        height: 56px;
        padding-left: 17px;
        font-size: 16px;
    }

    .beeko-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .beeko-login-submit {
        min-height: 56px;
    }

    .beeko-decor-dot-top {
        top: 15px;
        right: 18px;
    }
}

/* User login additions */
.beeko-login-alert.is-success {
    color: #087a45;
    border-color: #b9e9d0;
    background: #effbf5;
}

.beeko-login-options-user a:first-child {
    text-decoration: none;
}

.beeko-login-options-user a:first-child:hover {
    text-decoration: underline;
}

.beeko-login-footer a {
    color: var(--beeko-blue);
    font-weight: 700;
}

.beeko-login-footer a:hover {
    color: var(--beeko-blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Beeko user registration and password recovery */
.beeko-auth-register .beeko-login-form-wrap {
    width: min(100%, 445px);
}

.beeko-auth-register .beeko-login-heading {
    margin-bottom: 28px;
}

.beeko-auth-register .beeko-field {
    margin-bottom: 14px;
}

.beeko-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 18px 0 28px;
    color: #4f5a72;
    font-size: 15px;
    line-height: 1.55;
    cursor: pointer;
}

.beeko-terms-check input {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    accent-color: var(--beeko-blue);
    cursor: pointer;
}

.beeko-terms-check a,
.beeko-auth-switch a {
    color: var(--beeko-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.beeko-terms-check a:hover,
.beeko-auth-switch a:hover {
    color: var(--beeko-blue-dark);
}

.beeko-auth-switch {
    margin: 34px 0 0;
    color: #59647b;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.beeko-auth-reset .beeko-login-form-wrap,
.beeko-auth-reset-password .beeko-login-form-wrap {
    width: min(100%, 445px);
}

.beeko-auth-reset .beeko-login-heading,
.beeko-auth-reset-password .beeko-login-heading {
    margin-bottom: 30px;
}

.beeko-auth-reset .beeko-login-submit,
.beeko-auth-reset-password .beeko-login-submit {
    margin-top: 8px;
}

@media (max-height: 780px) and (min-width: 821px) {
    .beeko-auth-register .beeko-login-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .beeko-auth-register .beeko-login-heading h1 {
        font-size: 36px;
    }

    .beeko-auth-register .beeko-login-heading p {
        line-height: 1.4;
    }

    .beeko-auth-register .beeko-field input,
    .beeko-auth-register .beeko-login-submit {
        min-height: 54px;
        height: 54px;
    }

    .beeko-auth-register .beeko-terms-check {
        margin-top: 14px;
        margin-bottom: 20px;
    }

    .beeko-auth-register .beeko-auth-switch {
        margin-top: 22px;
    }

    .beeko-auth-register .beeko-login-footer {
        margin-top: 20px;
    }
}

@media (max-width: 520px) {
    .beeko-auth-register .beeko-login-heading,
    .beeko-auth-reset .beeko-login-heading,
    .beeko-auth-reset-password .beeko-login-heading {
        margin-bottom: 24px;
    }

    .beeko-terms-check {
        font-size: 14px;
    }

    .beeko-auth-switch {
        margin-top: 26px;
        font-size: 14px;
    }
}
