/* FC Login & Register Popup — v1.0.7 visual redesign */

:root {
    --fc-auth-rose: #cf5f7c;
    --fc-auth-rose-dark: #b94767;
    --fc-auth-rose-soft: #fff5f7;
    --fc-auth-text: #242127;
    --fc-auth-muted: #777078;
    --fc-auth-border: #eadde1;
}

.fc-auth-popup-host .dialog-widget-content {
    width: min(900px, calc(100vw - 32px)) !important;
    max-width: 900px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 28px 85px rgba(48, 31, 37, .24) !important;
}

.fc-auth-popup-host .dialog-message {
    max-height: calc(100dvh - 32px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

.fc-auth-popup-host .dialog-close-button {
    top: 14px !important;
    right: 15px !important;
    z-index: 20 !important;
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #3d383d !important;
    background: rgba(255, 255, 255, .88) !important;
    transition: background .18s ease, color .18s ease !important;
}

.fc-auth-popup-host .dialog-close-button:hover {
    color: var(--fc-auth-rose) !important;
    background: #fff !important;
}

.fc-auth-experience {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 39%) minmax(0, 61%);
    min-height: 565px;
    overflow: hidden;
    background: #fff;
    color: var(--fc-auth-text);
}

.fc-auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 52px 38px 38px;
    overflow: hidden;
    background-color: #fff2f5;
    background-image: var(--fc-auth-rose-image);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}

.fc-auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 248, 250, .97) 0%, rgba(255, 245, 248, .83) 42%, rgba(255, 245, 248, .2) 78%);
    pointer-events: none;
}

.fc-auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 250px;
}

.fc-auth-eyebrow {
    margin: 0 0 13px;
    color: var(--fc-auth-rose);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
}

.fc-auth-visual-title {
    margin: 0;
    color: #332b31;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.fc-auth-heart {
    color: var(--fc-auth-rose);
    font-family: Arial, sans-serif;
    font-size: .85em;
}

.fc-auth-visual-line {
    width: 28px;
    height: 2px;
    margin: 20px 0 15px;
    border-radius: 999px;
    background: var(--fc-auth-rose);
}

.fc-auth-visual-copy {
    margin: 0;
    color: #61575f;
    font-size: 14px;
    line-height: 1.6;
}

.fc-auth-main {
    position: relative;
    min-width: 0;
    padding: 54px 48px 38px;
    background: rgba(255,255,255,.98);
}

.fc-auth-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .055;
    background-image: var(--fc-auth-wreath-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

.fc-auth-main > * {
    position: relative;
    z-index: 1;
}

.fc-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 26px;
    overflow: hidden;
    border: 1px solid #dfd5d8;
    border-radius: 8px;
    background: #fff;
}

.fc-auth-tab {
    min-height: 49px;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #4e474d !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: background .18s ease, color .18s ease !important;
}

.fc-auth-tab + .fc-auth-tab {
    border-left: 1px solid #dfd5d8 !important;
}

.fc-auth-tab.is-active {
    background: linear-gradient(135deg, #d66683, #c95372) !important;
    color: #fff !important;
}

.fc-auth-tab:focus-visible {
    outline: 2px solid rgba(207, 95, 124, .35) !important;
    outline-offset: -3px !important;
}

.fc-auth-panel[hidden] {
    display: none !important;
}

.fc-auth-panel .fc-form-title {
    display: none !important;
}

.fc-auth-panel .fc-login-wrap,
.fc-auth-panel .fc-register-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

.fc-auth-panel form {
    margin: 0 !important;
}

.fc-auth-panel form > p,
.fc-auth-panel .fc-register-wrap form > p {
    margin: 0 0 16px !important;
}

.fc-auth-panel label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #373037 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.fc-auth-panel input[type="text"],
.fc-auth-panel input[type="email"],
.fc-auth-panel input[type="password"] {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 49px !important;
    margin: 0 !important;
    padding: 0 46px 0 14px !important;
    border: 1px solid #ded6da !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.96) !important;
    color: #2c292d !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

.fc-auth-panel input[type="text"]:focus,
.fc-auth-panel input[type="email"]:focus,
.fc-auth-panel input[type="password"]:focus {
    border-color: var(--fc-auth-rose) !important;
    box-shadow: 0 0 0 3px rgba(207, 95, 124, .11) !important;
}

.fc-auth-input-shell {
    position: relative;
}

.fc-auth-password-toggle {
    position: absolute !important;
    right: 5px !important;
    bottom: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 39px !important;
    height: 39px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #786f76 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.fc-auth-password-toggle:hover,
.fc-auth-password-toggle:focus-visible {
    color: var(--fc-auth-rose) !important;
    outline: none !important;
}

.fc-auth-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fc-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 1px 0 20px;
}

.fc-auth-options .login-remember,
.fc-auth-options .fc-links {
    margin: 0 !important;
}

.fc-auth-options .login-remember label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    color: #5f585e !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.fc-auth-options input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: var(--fc-auth-rose);
}

.fc-auth-options a,
.fc-auth-switch a {
    color: var(--fc-auth-rose) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.fc-auth-options a:hover,
.fc-auth-switch a:hover {
    text-decoration: underline !important;
}

.fc-auth-panel input[type="submit"],
.fc-auth-panel button[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 49px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    border: 1px solid var(--fc-auth-rose) !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #d66683, #c95372) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.fc-auth-panel input[type="submit"]:hover,
.fc-auth-panel button[type="submit"]:hover {
    background: linear-gradient(135deg, #c95877, #b94767) !important;
    box-shadow: 0 8px 20px rgba(201, 83, 114, .18) !important;
    transform: translateY(-1px) !important;
}

.fc-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 23px 0 16px;
    color: #8a8388;
    font-size: 12px;
}

.fc-auth-divider::before,
.fc-auth-divider::after {
    content: "";
    height: 1px;
    background: #e6dfe2;
}

.fc-auth-switch {
    margin: 0;
    color: #625b61;
    font-size: 13px;
    text-align: center;
}

.fc-auth-register-panel .fc-auth-options {
    display: none;
}

.fc-auth-standalone {
    max-width: 460px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--fc-auth-border);
    border-radius: 16px;
    background: #fff;
}

@media (max-width: 767px) {
    .fc-auth-popup-host .dialog-widget-content {
        width: calc(100vw - 20px) !important;
        max-width: 520px !important;
        border-radius: 18px !important;
    }

    .fc-auth-popup-host .dialog-message {
        max-height: calc(100dvh - 20px) !important;
    }

    .fc-auth-experience {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fc-auth-visual {
        min-height: 145px;
        padding: 25px 56px 22px 24px;
        background-image: var(--fc-auth-wreath-image);
        background-position: center;
        background-size: cover;
    }

    .fc-auth-visual::before {
        background: rgba(255, 248, 250, .82);
    }

    .fc-auth-visual-content {
        max-width: 100%;
        text-align: center;
    }

    .fc-auth-eyebrow {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .fc-auth-visual-title {
        font-size: 24px;
        line-height: 1.18;
    }

    .fc-auth-visual-line,
    .fc-auth-visual-copy {
        display: none;
    }

    .fc-auth-main {
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    }

    .fc-auth-tabs {
        margin-bottom: 21px;
    }

    .fc-auth-options {
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .fc-auth-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fc-auth-visual-title {
        font-size: 22px;
    }
}

/* ======================================================
   v1.0.7 layout and mobile tab correction
   ====================================================== */
.fc-auth-popup-host .dialog-widget-content {
    box-sizing: border-box !important;
    width: min(900px, calc(100vw - 32px)) !important;
    max-width: 900px !important;
    padding: 0 !important;
}

.fc-auth-popup-host .dialog-message,
.fc-auth-popup-host .fc-auth-popup-content {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.fc-auth-popup-host .dialog-message > .fc-auth-experience,
.fc-auth-popup-content > .fc-auth-experience {
    display: grid !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.fc-auth-experience {
    grid-template-columns: minmax(300px, 39%) minmax(0, 61%) !important;
}

.fc-auth-visual,
.fc-auth-main,
.fc-auth-panel,
.fc-auth-panel > div,
.fc-auth-panel form {
    min-width: 0 !important;
    max-width: none !important;
}

.fc-auth-main {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow: visible !important;
}

.fc-auth-tabs {
    position: relative !important;
    z-index: 8 !important;
    width: 100% !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.fc-auth-tab {
    position: relative !important;
    z-index: 9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.fc-auth-panel.is-active {
    display: block !important;
}

.fc-auth-panel:not(.is-active),
.fc-auth-panel[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .fc-auth-popup-host .dialog-widget-content {
        width: calc(100vw - 20px) !important;
        max-width: 520px !important;
        margin: 10px auto !important;
    }

    .fc-auth-popup-host .dialog-message,
    .fc-auth-popup-host .fc-auth-popup-content {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .fc-auth-popup-host .dialog-message > .fc-auth-experience,
    .fc-auth-popup-content > .fc-auth-experience,
    .fc-auth-experience {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }

    .fc-auth-visual {
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 150px !important;
        padding: 24px 48px 20px 24px !important;
    }

    .fc-auth-visual-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .fc-auth-visual-title {
        margin-left: 0 !important;
        padding-left: 0 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .fc-auth-main {
        box-sizing: border-box !important;
        width: 100% !important;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom)) !important;
    }

    .fc-auth-tabs {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    .fc-auth-tab {
        min-width: 0 !important;
        min-height: 50px !important;
        font-size: 14px !important;
    }
}

