/* f-affiliate-login 组件样式 */
f-affiliate-login {
    display: inline-block;
}

.aff-trigger-btn {
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
}


/* 模态框样式 */
.affiliate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
}

.affiliate-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.affiliate-dialog {
    position: relative;
    z-index: 10001;
    border-radius: 12px;
    width: 420px;
    max-width: calc(100vw - 40px);
}

.affiliate-dialog-body {
    padding: 24px;
    position: relative;
}

.affiliate-position-close {
    position: absolute;
    right: 16px;
    top: 16px;
}

.affiliate-close-icon {
    cursor: pointer;
    display: inline-block;
    padding: 5px;
    font-size: 20px;
    color: rgb(var(--color-foreground-secondary));
    transition: color 0.2s;
}

.affiliate-close-icon:hover {
    color: rgb(var(--color-foreground));

}

.affiliate-form-title {
    font-size: 28px;
    font-weight: 500;
    color: rgb(var(--color-heading));
    text-transform: capitalize;
}

.affiliate-tip-box {
    min-height: 38px;
    margin-bottom: 8px;
}

.affiliate-error-msg {
    color: rgb(var(--color-error));
    font-size: 13px;
    padding: 8px 0;
}

.affiliate-form-group {
    margin-bottom: 16px;
}

.affiliate-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid rgb(var(--color-border));;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}


.affiliate-input-error {
    border-color: rgb(var(--color-error));
}

.affiliate-captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.affiliate-captcha-input {
    flex: 1;
}

.affiliate-captcha-image {
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    display: flex;
    align-items: center;
}

.affiliate-captcha-image img {
    height: 44px;
    width: 120px;
    object-fit: cover;
}

.affiliate-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    text-transform: capitalize;
}

#affCreateAccountBtn{
    font-weight: 400;
    font-size: 14px;
}
.affiliate-btn-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.affiliate-to-register {
    margin-top: 24px;
}

.affiliate-divider-line {
    border-top: 1px solid rgb(var(--color-border));;
    position: relative;
    margin-bottom: 20px;
}

.affiliate-divider-line span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 12px;
    font-size: 11px;
    background: rgb(var(--color-background));
    color: rgb(var(--color-foreground-secondary));
    font-weight: 500;
    letter-spacing: 1px;
}

.affiliate-msg {
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
    color: rgb(var(--color-foreground-secondary));
}
.affiliate-msg span{
    text-decoration: underline;
}
.affiliate-link {
    cursor: pointer;
    font-weight: 600;
    margin-left: 5px;
}

.affiliate-link:hover {
    text-decoration: underline;
}