:root {
    --tc-primary: #5b4bdb;
    --tc-dark: #172033;
    --tc-soft: #f4f6fb;
}

body {
    background: var(--tc-soft);
    color: var(--tc-dark);
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -.03em;
}

.navbar-brand span {
    color: #b8adff;
}

.sidebar-link {
    border-radius: .65rem;
    color: #dce2f1;
    display: block;
    padding: .65rem .8rem;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,.11);
    color: #fff;
}

.app-sidebar {
    background: var(--tc-dark);
    min-height: calc(100vh - 56px);
}

.card {
    border: 0;
    box-shadow: 0 .35rem 1.2rem rgba(31, 43, 73, .07);
}

.stat-card {
    overflow: hidden;
    position: relative;
}

.stat-card::after {
    background: var(--tc-primary);
    border-radius: 50%;
    content: "";
    height: 90px;
    opacity: .08;
    position: absolute;
    right: -25px;
    top: -30px;
    width: 90px;
}

.btn-primary {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
}

.design-thumb {
    aspect-ratio: 16 / 10;
    background: #e9ecf4;
    object-fit: contain;
    width: 100%;
}

.editor-stage-wrap {
    background-color: #d9deea;
    background-image:
        linear-gradient(45deg, #cbd1df 25%, transparent 25%),
        linear-gradient(-45deg, #cbd1df 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cbd1df 75%),
        linear-gradient(-45deg, transparent 75%, #cbd1df 75%);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    border-radius: .75rem;
    overflow: auto;
    padding: 1rem;
}

#editor-stage {
    position: relative;
    transform-origin: top left;
}

#editor-stage > img {
    display: block;
    height: auto;
    max-width: none;
    user-select: none;
    width: 100%;
}

.dynamic-field {
    border: 2px dashed rgba(255,255,255,.9);
    cursor: move;
    line-height: 1.2;
    min-height: 1.3em;
    overflow: hidden;
    padding: 2px 5px;
    position: absolute;
    text-shadow: 0 1px 3px rgba(0,0,0,.65);
    white-space: normal;
}

.dynamic-field.selected {
    border-color: #ffdf5d;
    box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}

.login-shell {
    background: #eef0fa;
    min-height: 100vh;
}

.login-page {
    align-items: center;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.16), transparent 24%),
        linear-gradient(135deg, #161143 0%, #332875 48%, #efeefa 48%, #f8f8fc 100%);
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: 2.5rem;
    position: relative;
}

.login-orb {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    pointer-events: none;
    position: absolute;
}

.login-orb-one {
    height: 24rem;
    left: -12rem;
    top: -12rem;
    width: 24rem;
}

.login-orb-two {
    bottom: -8rem;
    height: 19rem;
    left: 34%;
    width: 19rem;
}

.login-layout {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 2rem 5rem rgba(24, 17, 67, .24);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(22rem, .88fr);
    margin: auto;
    max-width: 1180px;
    min-height: 720px;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.login-promo {
    background:
        radial-gradient(circle at 90% 5%, rgba(255,255,255,.13), transparent 26%),
        linear-gradient(145deg, #33217a 0%, #4f42ad 58%, #694ee4 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 3rem 3.5rem;
    position: relative;
}

.login-promo::after {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    content: "";
    height: 28rem;
    position: absolute;
    right: -17rem;
    top: 12rem;
    width: 28rem;
}

.login-brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 700;
    gap: .7rem;
    letter-spacing: -.03em;
    position: relative;
    text-decoration: none;
    width: fit-content;
    z-index: 1;
}

.login-brand strong {
    color: #c9c1ff;
}

.login-brand-mark {
    align-items: center;
    background: #fff;
    border-radius: .75rem;
    color: #4e3bb5;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 900;
    height: 2.5rem;
    justify-content: center;
    transform: rotate(-6deg);
    width: 2.5rem;
}

.login-promo-copy {
    margin-top: 3rem;
    max-width: 35rem;
    position: relative;
    z-index: 1;
}

.login-kicker {
    align-items: center;
    color: #d4ceff;
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    gap: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-kicker::before {
    background: #9cf1c4;
    border-radius: 999px;
    content: "";
    height: .2rem;
    width: 2.4rem;
}

.login-promo h1 {
    font-size: clamp(2rem, 3.3vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.03;
    margin: 1.1rem 0 1rem;
}

.login-promo-copy p {
    color: #d9d5f7;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    max-width: 31rem;
}

.birthday-showcase {
    height: 225px;
    margin: 1.6rem 0 1.25rem;
    position: relative;
    z-index: 1;
}

.birthday-card {
    border-radius: 1.25rem;
    box-shadow: 0 1.4rem 2.5rem rgba(20, 12, 67, .3);
    position: absolute;
}

.birthday-card-back {
    background: linear-gradient(145deg, #ff9e83, #ff6f91);
    color: #fff;
    height: 165px;
    left: 1rem;
    padding: 1.5rem;
    top: 2rem;
    transform: rotate(-8deg);
    width: 220px;
}

.birthday-card-back small,
.birthday-card-front small {
    display: block;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .16em;
    opacity: .8;
}

.birthday-card-back strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: .95;
    margin-top: .65rem;
}

.birthday-card-confetti {
    color: #ffe794;
    font-size: 2rem;
    position: absolute;
    right: 1rem;
    top: .5rem;
    transform: rotate(20deg);
}

.birthday-card-front {
    align-items: center;
    background: #fff7dc;
    color: #382779;
    display: flex;
    gap: 1.5rem;
    height: 178px;
    left: 9.5rem;
    padding: 1.4rem 1.7rem;
    top: .55rem;
    transform: rotate(3deg);
    width: 330px;
}

.birthday-card-front strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 1.85rem;
    line-height: 1;
    margin: .55rem 0 .8rem;
}

.birthday-card-front > div:last-child > span {
    color: #765f9c;
    font-size: .65rem;
}

.birthday-cake {
    height: 100px;
    min-width: 80px;
    position: relative;
}

.birthday-cake-base,
.birthday-cake-top {
    bottom: 8px;
    left: 4px;
    position: absolute;
}

.birthday-cake-base {
    background: #ff7895;
    border-radius: .4rem .4rem .8rem .8rem;
    height: 48px;
    width: 72px;
}

.birthday-cake-top {
    background: #fff;
    border: 7px solid #ff7895;
    border-radius: 50%;
    bottom: 43px;
    height: 30px;
    width: 72px;
}

.birthday-candle {
    background: repeating-linear-gradient(45deg, #5d49c5 0 4px, #fff 4px 8px);
    bottom: 68px;
    height: 28px;
    left: 36px;
    position: absolute;
    width: 7px;
}

.birthday-candle::before {
    background: #ffc548;
    border-radius: 70% 30% 55% 45%;
    content: "";
    height: 12px;
    left: -2px;
    position: absolute;
    top: -14px;
    transform: rotate(12deg);
    width: 10px;
}

.showcase-badge {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    bottom: .2rem;
    box-shadow: 0 .7rem 1.8rem rgba(26, 18, 75, .24);
    color: #332779;
    display: flex;
    font-size: .68rem;
    font-weight: 800;
    gap: .45rem;
    left: 19rem;
    padding: .6rem .85rem;
    position: absolute;
    white-space: nowrap;
}

.showcase-badge svg {
    fill: none;
    height: 1.1rem;
    stroke: #2eb67d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.1rem;
}

.login-benefits {
    border-top: 1px solid rgba(255,255,255,.16);
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-top: auto;
    padding-top: 1.35rem;
    position: relative;
    z-index: 1;
}

.login-benefits > div {
    align-items: center;
    display: flex;
    gap: .8rem;
}

.benefit-icon {
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: .75rem;
    display: flex;
    height: 2.65rem;
    justify-content: center;
    min-width: 2.65rem;
}

.benefit-icon svg {
    fill: none;
    height: 1.2rem;
    stroke: #b9f4d4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.2rem;
}

.login-benefits p {
    font-size: .76rem;
    line-height: 1.35;
    margin: 0;
}

.login-benefits strong,
.login-benefits span {
    display: block;
}

.login-benefits strong {
    font-size: .8rem;
    margin-bottom: .15rem;
}

.login-benefits p span {
    color: #c8c3ea;
}

.login-access {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem 2rem;
}

.login-access-eyebrow {
    color: var(--tc-primary);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-access-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: .45rem 0 .4rem;
}

.login-access-header p {
    color: #77758a;
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
}

.login-form {
    margin-top: 2rem;
}

.login-field {
    margin-bottom: 1.2rem;
}

.login-field label {
    color: #2d2947;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap svg {
    fill: none;
    height: 1.15rem;
    left: 1rem;
    position: absolute;
    stroke: #8d89a5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
}

.login-input-wrap input {
    background: #f7f7fb;
    border: 1px solid #e5e3ed;
    border-radius: .85rem;
    color: #28243d;
    font-size: .88rem;
    outline: 0;
    padding: .85rem 1rem .85rem 2.8rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    width: 100%;
}

.login-input-wrap input:focus {
    background: #fff;
    border-color: #7666dd;
    box-shadow: 0 0 0 .22rem rgba(91, 75, 219, .12);
}

.login-submit {
    align-items: center;
    background: linear-gradient(135deg, #5744cc, #725ce5);
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 .75rem 1.5rem rgba(91, 75, 219, .24);
    color: #fff;
    display: flex;
    font-size: .88rem;
    font-weight: 700;
    justify-content: center;
    margin-top: .4rem;
    padding: .9rem 1.2rem;
    transition: transform .2s, box-shadow .2s;
    width: 100%;
}

.login-submit:hover {
    box-shadow: 0 .9rem 1.8rem rgba(91, 75, 219, .32);
    transform: translateY(-2px);
}

.login-submit svg {
    fill: none;
    height: 1rem;
    margin-left: .65rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.login-contact {
    border-top: 1px solid #eceaf2;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.login-contact-title span,
.login-contact-title strong {
    display: block;
}

.login-contact-title span {
    color: #89869a;
    font-size: .74rem;
}

.login-contact-title strong {
    color: #302c48;
    font-size: .87rem;
    margin-top: .18rem;
}

.login-contact-actions {
    display: grid;
    gap: .65rem;
    grid-template-columns: 1.55fr 1fr;
    margin-top: .85rem;
}

.contact-button {
    align-items: center;
    border: 1px solid #e5e3ed;
    border-radius: .75rem;
    color: #36324b;
    display: flex;
    gap: .65rem;
    min-width: 0;
    padding: .65rem .75rem;
    text-decoration: none;
    transition: border-color .2s, transform .2s, background .2s;
}

.contact-button:hover {
    border-color: #bdb7df;
    color: #332a70;
    transform: translateY(-2px);
}

.contact-whatsapp:hover {
    background: #f1fcf6;
    border-color: #9eddbb;
}

.contact-button svg {
    fill: none;
    height: 1.25rem;
    min-width: 1.25rem;
    stroke: #5f52b4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 1.25rem;
}

.contact-whatsapp svg {
    stroke: #26a96c;
}

.contact-button span,
.contact-button small {
    display: block;
}

.contact-button span {
    font-size: .7rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-button small {
    color: #8b889b;
    font-size: .57rem;
    font-weight: 600;
    margin-bottom: .05rem;
}

.login-copyright {
    color: #aaa7b7;
    font-size: .61rem;
    margin: 1.5rem 0 0;
    text-align: center;
}

.login-shell > .container.pt-4 {
    left: 50%;
    max-width: 700px;
    position: fixed;
    top: 0;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    z-index: 10;
}

@media (max-width: 767.98px) {
    .app-sidebar {
        min-height: auto;
    }

    .login-page {
        background: #332779;
        padding: 1rem;
    }

    .login-layout {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .login-access {
        order: -1;
        padding: 2.25rem 1.5rem 1.75rem;
    }

    .login-promo {
        padding: 2rem 1.5rem;
    }

    .login-promo-copy {
        margin-top: 2rem;
    }

    .login-promo h1 {
        font-size: 2rem;
    }

    .birthday-showcase {
        display: none;
    }

    .login-benefits {
        margin-top: 2rem;
    }

    .login-contact-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1050px) {
    .login-page {
        padding: 1.5rem;
    }

    .login-layout {
        grid-template-columns: 1fr 24rem;
    }

    .login-promo,
    .login-access {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .birthday-card-front {
        left: 6rem;
    }

    .showcase-badge {
        left: 13rem;
    }
}

@media (max-height: 780px) and (min-width: 768px) {
    .login-page {
        padding-bottom: 1rem;
        padding-top: 1rem;
    }

    .login-layout {
        min-height: 660px;
    }

    .login-promo-copy {
        margin-top: 2rem;
    }

    .birthday-showcase {
        height: 195px;
        margin-bottom: .5rem;
        margin-top: 1rem;
        transform: scale(.9);
        transform-origin: left top;
    }
}
