/* AppBuilder Section: Login Desktop [desktop] */
@import url(
    'https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,600;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap'
);

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
}

.appbuilder-preview-root {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
}

.appbuilder-preview-device {
    display: none !important;
}

.ypm-desktop-login,
.ypm-desktop-login *,
.ypm-desktop-login *::before,
.ypm-desktop-login *::after {
    box-sizing: border-box;
}

.ypm-desktop-login {
    --green-900: #0f2d1a;
    --green-800: #1a4028;
    --green-700: #1f5a32;
    --green-600: #2d7a45;
    --green-500: #3d9e5c;
    --green-200: #b2e5c6;
    --green-100: #d8f3e5;
    --green-50: #f0faf4;
    --gold-400: #d4a017;
    --gold-200: #f0d080;
    --gold-50: #fdf8e8;
    --neutral-900: #1a1a1a;
    --neutral-700: #3d3d3d;
    --neutral-500: #6b6b6b;
    --neutral-300: #c4c4c4;
    --neutral-200: #e6e9e7;
    --neutral-100: #f5f6f5;
    --white: #ffffff;
    --danger: #c9394f;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    color: var(--neutral-900);
    background: var(--white);

    font-family:
        "Plus Jakarta Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

.ypm-desktop-login button,
.ypm-desktop-login input {
    font: inherit;
}

.ypm-desktop-login button,
.ypm-desktop-login a,
.ypm-desktop-login input {
    -webkit-tap-highlight-color: transparent;
}

.ypm-desktop-login__layout {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: grid;
    grid-template-columns:
        minmax(460px, 1.08fr)
        minmax(460px, 0.92fr);
}

/* LEFT PANEL */

.ypm-desktop-login__panel-left {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: clamp(34px, 4vw, 58px);

    color: var(--white);
    background:
        linear-gradient(
            145deg,
            var(--green-900) 0%,
            #123820 48%,
            var(--green-800) 100%
        );
}

.ypm-desktop-login__pattern {
    position: absolute;
    z-index: -3;
    inset: 0;

    opacity: 0.06;

    background-image:
        radial-gradient(
            circle at 15% 40%,
            var(--green-200) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 70% 70%,
            var(--gold-200) 1px,
            transparent 1px
        );

    background-size:
        48px 48px,
        72px 72px;
}

.ypm-desktop-login__blob {
    position: absolute;
    z-index: -2;

    display: block;
    border-radius: 999px;
    pointer-events: none;
}

.ypm-desktop-login__blob--one {
    right: -130px;
    bottom: -175px;

    width: 510px;
    height: 510px;

    background: rgba(45, 122, 69, 0.22);
}

.ypm-desktop-login__blob--two {
    top: -95px;
    left: -80px;

    width: 300px;
    height: 300px;

    background: rgba(212, 160, 23, 0.07);
}

.ypm-desktop-login__brand {
    position: relative;
    z-index: 2;

    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: inherit;
    text-decoration: none;
}

.ypm-desktop-login__brand-mark {
    width: 48px;
    height: 48px;

    padding: 2px;
    flex: 0 0 48px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.ypm-desktop-login__brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ypm-desktop-login__brand-text {
    display: block;
}

.ypm-desktop-login__brand-text strong,
.ypm-desktop-login__brand-text small {
    display: block;
}

.ypm-desktop-login__brand-text strong {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.015em;
}

.ypm-desktop-login__brand-text small {
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.50);
    font-size: 11px;
    font-weight: 400;
}

.ypm-desktop-login__intro {
    position: relative;
    z-index: 2;

    width: min(100%, 560px);
    margin: 54px 0;
}

.ypm-desktop-login__eyebrow {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 28px;
    padding: 6px 15px 6px 10px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.07);

    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ypm-desktop-login__eyebrow span {
    width: 7px;
    height: 7px;

    display: block;
    border-radius: 999px;
    background: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.10);
}

.ypm-desktop-login__intro h1 {
    margin: 0 0 20px;

    color: var(--white);

    font-family: "Lora", Georgia, serif;
    font-size: clamp(34px, 3.2vw, 50px);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.ypm-desktop-login__intro h1 em {
    color: var(--gold-200);
    font-style: italic;
}

.ypm-desktop-login__intro > p {
    max-width: 490px;
    margin: 0;

    color: rgba(255, 255, 255, 0.57);
    font-size: 14px;
    line-height: 1.8;
}

.ypm-desktop-login__features {
    margin-top: 37px;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ypm-desktop-login__feature {
    display: flex;
    align-items: center;
    gap: 13px;

    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    line-height: 1.5;
}

.ypm-desktop-login__feature-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);
}

.ypm-desktop-login__feature-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: var(--gold-200);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ypm-desktop-login__panel-footer {
    position: relative;
    z-index: 2;

    color: rgba(255, 255, 255, 0.30);
    font-size: 11px;
    line-height: 1.5;
}

/* RIGHT PANEL */

.ypm-desktop-login__panel-right {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: clamp(40px, 5vw, 78px);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(61, 158, 92, 0.07),
            transparent 30%
        ),
        var(--white);
}

.ypm-desktop-login__box {
    width: min(100%, 420px);
}

.ypm-desktop-login__header {
    margin-bottom: 32px;
}

.ypm-desktop-login__mobile-logo {
    width: 48px;
    height: 48px;

    display: none;
    place-items: center;

    margin-bottom: 22px;
    padding: 3px;

    overflow: hidden;
    border: 1px solid #e6eee8;
    border-radius: 14px;
    background: var(--green-50);
}

.ypm-desktop-login__mobile-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ypm-desktop-login__header h2 {
    margin: 0 0 8px;

    color: var(--neutral-900);

    font-family: "Lora", Georgia, serif;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.018em;
}

.ypm-desktop-login__header p {
    margin: 0;

    color: var(--neutral-500);
    font-size: 13px;
    line-height: 1.7;
}

.ypm-desktop-login__form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.ypm-desktop-login__group > label {
    display: block;
    margin-bottom: 8px;

    color: var(--neutral-700);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ypm-desktop-login__input {
    position: relative;

    min-height: 49px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    border: 1.5px solid var(--neutral-100);
    border-radius: 11px;

    background: var(--neutral-100);

    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.ypm-desktop-login__input:focus-within {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(61, 158, 92, 0.09);
}

.ypm-desktop-login__input-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;

    display: grid;
    place-items: center;

    margin-right: 11px;

    color: var(--neutral-300);

    transition: color 0.16s ease;
}

.ypm-desktop-login__input:focus-within
.ypm-desktop-login__input-icon {
    color: var(--green-600);
}

.ypm-desktop-login__input-icon svg,
.ypm-desktop-login__toggle svg,
.ypm-desktop-login__submit svg,
.ypm-desktop-login__security svg,
.ypm-desktop-login__back svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ypm-desktop-login__input input {
    width: 100%;
    min-width: 0;
    height: 46px;

    padding: 0;

    border: 0;
    outline: 0;

    color: var(--neutral-900);
    background: transparent;
    caret-color: var(--green-600);

    font-size: 13.5px;
    font-weight: 500;
}

.ypm-desktop-login__input input::placeholder {
    color: var(--neutral-300);
    font-weight: 400;
}

.ypm-desktop-login__input input:-webkit-autofill,
.ypm-desktop-login__input input:-webkit-autofill:hover,
.ypm-desktop-login__input input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--neutral-900);
    -webkit-box-shadow: 0 0 0 1000px var(--white) inset;
    transition: background-color 9999s ease-out;
}

.ypm-desktop-login__toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: grid;
    place-items: center;

    margin-right: -6px;
    padding: 9px;

    border: 0;
    border-radius: 9px;
    outline: 0;

    color: var(--neutral-300);
    background: transparent;

    cursor: pointer;

    transition:
        color 0.16s ease,
        background 0.16s ease;
}

.ypm-desktop-login__toggle:hover,
.ypm-desktop-login__toggle:focus-visible {
    color: var(--green-700);
    background: var(--green-50);
}

.ypm-desktop-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: -4px;
}

.ypm-desktop-login__options > a {
    color: var(--green-700);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.ypm-desktop-login__options > a:hover {
    text-decoration: underline;
}

.ypm-desktop-login__remember {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--neutral-500);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;

    cursor: pointer;
    user-select: none;
}

.ypm-desktop-login__remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.ypm-desktop-login__remember-box {
    position: relative;

    width: 17px;
    height: 17px;
    flex: 0 0 17px;

    display: grid;
    place-items: center;

    border: 1.5px solid #cfd5d1;
    border-radius: 5px;
    background: var(--white);

    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.ypm-desktop-login__remember-box::after {
    content: "";

    width: 7px;
    height: 4px;
    margin-top: -2px;

    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);

    opacity: 0;
    transform: rotate(-45deg) scale(0.6);

    transition:
        opacity 0.14s ease,
        transform 0.14s ease;
}

.ypm-desktop-login__remember input:checked +
.ypm-desktop-login__remember-box {
    border-color: var(--green-600);
    background: var(--green-600);
}

.ypm-desktop-login__remember input:checked +
.ypm-desktop-login__remember-box::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.ypm-desktop-login__remember input:focus-visible +
.ypm-desktop-login__remember-box {
    box-shadow: 0 0 0 4px rgba(61, 158, 92, 0.12);
}

.ypm-desktop-login__submit {
    position: relative;

    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 18px;

    border: 0;
    border-radius: 11px;
    outline: 0;

    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--green-700),
            var(--green-600)
        );

    box-shadow: 0 13px 25px rgba(31, 90, 50, 0.20);

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.ypm-desktop-login__submit:hover {
    background:
        linear-gradient(
            135deg,
            var(--green-800),
            var(--green-700)
        );

    box-shadow: 0 16px 30px rgba(31, 90, 50, 0.25);
}

.ypm-desktop-login__submit:active {
    transform: scale(0.99);
}

.ypm-desktop-login__submit:disabled {
    opacity: 0.82;
    cursor: wait;
}

.ypm-desktop-login__submit-arrow {
    width: 17px !important;
    height: 17px !important;
}

.ypm-desktop-login__spinner {
    width: 18px;
    height: 18px;

    display: none;

    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: var(--white);
    border-radius: 999px;

    animation: ypm-desktop-spin 0.7s linear infinite;
}

.ypm-desktop-login__submit.is-loading
.ypm-desktop-login__submit-arrow {
    display: none;
}

.ypm-desktop-login__submit.is-loading
.ypm-desktop-login__spinner {
    display: block;
}

.ypm-desktop-login__message {
    margin: -6px 0 20px;
    padding: 11px 13px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.55;

    opacity: 0;
    transform: translateY(-4px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.ypm-desktop-login__message[hidden] {
    display: none !important;
}

.ypm-desktop-login__message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ypm-desktop-login__message.is-danger {
    border-color: #f2c9cf;
    background: #fff1f3;
    color: #a5263a;
}

.ypm-desktop-login__message.is-success {
    border-color: #cfe8d7;
    background: #effaf2;
    color: #21663a;
}

.ypm-desktop-login__message.is-info {
    border-color: #d7e4ef;
    background: #f3f8fc;
    color: #315a78;
}

.ypm-desktop-login__input.is-invalid {
    border-color: var(--danger);
    background: #fff8f9;
    box-shadow: 0 0 0 4px rgba(201, 57, 79, 0.08);
}

.ypm-desktop-login__security {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 16px;
    padding: 10px 12px;

    border: 1px solid #e2f0e6;
    border-radius: 11px;

    color: var(--green-700);
    background: var(--green-50);

    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.5;
}

.ypm-desktop-login__security svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ypm-desktop-login__divider {
    margin: 23px 0 19px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--neutral-300);
    font-size: 10.5px;
}

.ypm-desktop-login__divider::before,
.ypm-desktop-login__divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--neutral-100);
}

.ypm-desktop-login__back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: var(--neutral-500);
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.15s ease;
}

.ypm-desktop-login__back:hover {
    color: var(--green-700);
}

.ypm-desktop-login__back svg {
    width: 15px;
    height: 15px;
}

.ypm-desktop-login__login-footer {
    margin-top: 38px;

    color: var(--neutral-300);
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

@keyframes ypm-desktop-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1050px) {
    .ypm-desktop-login__layout {
        grid-template-columns:
            minmax(390px, 0.94fr)
            minmax(430px, 1.06fr);
    }

    .ypm-desktop-login__panel-left {
        padding: 36px;
    }

    .ypm-desktop-login__intro h1 {
        font-size: 36px;
    }

    .ypm-desktop-login__panel-right {
        padding: 42px;
    }
}

@media (max-width: 820px) {
    .ypm-desktop-login__layout {
        grid-template-columns: 1fr;
    }

    .ypm-desktop-login__panel-left {
        display: none;
    }

    .ypm-desktop-login__panel-right {
        padding: 52px 24px;
    }

    .ypm-desktop-login__mobile-logo {
        display: grid;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .ypm-desktop-login__panel-left,
    .ypm-desktop-login__panel-right {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .ypm-desktop-login__intro {
        margin: 28px 0;
    }

    .ypm-desktop-login__eyebrow {
        margin-bottom: 18px;
    }

    .ypm-desktop-login__intro h1 {
        margin-bottom: 14px;
        font-size: 34px;
    }

    .ypm-desktop-login__features {
        margin-top: 24px;
        gap: 10px;
    }

    .ypm-desktop-login__header {
        margin-bottom: 24px;
    }

    .ypm-desktop-login__form {
        gap: 14px;
    }

    .ypm-desktop-login__login-footer {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ypm-desktop-login *,
    .ypm-desktop-login *::before,
    .ypm-desktop-login *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
