.jcs-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.jcs-auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 26, 0.56);
    backdrop-filter: blur(2px);
}

.jcs-auth-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 0 22px;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
    overflow: hidden;
}

.jcs-auth-modal[data-auth-view="register"] .jcs-auth-modal__dialog {
    max-width: 800px;
}

.jcs-auth-modal__close {
    position: absolute;
    right: 18px;
    top: 14px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: none;
    border-radius: 999px;
    background: #612471;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.jcs-auth-modal__close:hover {
    background: #612471;
    transform: translateY(-1px);
}

.jcs-auth-modal__title {
    margin: 0;
    padding: 0 48px 10px 16px;
    border-bottom: 1px solid #e8ebf0;
    color: #23262d;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.jcs-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 24px;
}

#jcs-login-form,
#jcs-forgot-form,
#jcs-register-form {
    padding: 18px 16px 0;
}

.jcs-auth-field label {
    display: block;
    margin-bottom: 10px;
    color: #32363d;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.jcs-auth-field label span {
    color: #ef4444;
}

.jcs-auth-field input {
    width: 100%;
    height: 54px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 0 16px;
    color: #1f2937;
    font-size: 20px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#jcs-login-form .jcs-auth-field+.jcs-auth-field,
#jcs-forgot-form .jcs-auth-field+.jcs-auth-field {
    margin-top: 18px;
}

.jcs-auth-field input:focus {
    outline: none;
    border-color: #d2a623;
    box-shadow: 0 0 0 3px rgba(210, 166, 35, 0.14);
}

.jcs-auth-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px !important;
}

.jcs-auth-inline-actions--end {
    justify-content: flex-end;
}

.jcs-auth-text-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #d2a623;
    font-size: 25px;
    font-weight: 600;
    cursor: pointer;
}

.jcs-auth-text-link--accent {
    font-size: 25px;
    font-weight: 600;
}

.jcs-auth-text-link:hover {
    color: #b68d16;
}

.jcs-auth-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: #612471;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.jcs-auth-submit:hover {
    transform: translateY(-1px);
}

.jcs-auth-switch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    color: #555b65;
    font-size: 20px;
    text-align: center;
}

.jcs-auth-message {
    margin: 0 16px 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f9fc;
    font-size: 14px;
    line-height: 1.45;
}

.jcs-header-profile-menu {
    position: relative;
    display: inline-block;
    text-align: left;
}

.jcs-header-profile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #612471;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
}

.jcs-header-profile-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jcs-header-profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    display: none;
    min-width: 210px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.jcs-header-profile-menu.is-open .jcs-header-profile-dropdown {
    display: block;
}

.jcs-header-profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    font-size: 20px;
}

.jcs-header-profile-dropdown a:hover {
    background: #f6f7fb;
}

.jcs-header-profile-dropdown i {
    width: 16px;
    text-align: center;
}

@media (max-width: 767px) {
    .jcs-auth-modal {
        padding: 16px;
    }

    .jcs-auth-modal__dialog {
        max-width: 100%;
        padding-bottom: 18px;
    }

    .jcs-auth-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jcs-auth-modal__title {
        font-size: 18px;
        padding-left: 14px;
        padding-right: 42px;
        padding-bottom: 16px;
    }

    #jcs-login-form,
    #jcs-forgot-form,
    #jcs-register-form {
        padding-left: 14px;
        padding-right: 14px;
    }

    .jcs-auth-switch-row {
        flex-wrap: wrap;
    }
}